JS Help for function
The problem: I have two images which I us for different switching displays, the small one is s_filename.jpg and the large one is x_s_filename.jpg
The script below is grabbing the filename prefix, but only the first letter, how can I manage it to get the first 3 or 2 letters like x_s
I appreciate any help.
case 1 :
size_name = 'x_s';
default : // 0
size_name = 's';
Last edited by omar1000; 05-03-2009 at 07:43 AM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread