Hello,

I have the following code which is part of a loop to add preview
images to a filmstrip where each cell is made up pf a div. My
filmstrip uses a tiny b&w version of the image which is stored in the
images/s/ folder. My preview images must come from the images/m/
folder. I have tried using replace() but have not been successful at
it. Any help would be greatly appreciated.

Code:

$("body").append("<div id='preview'><img src='"+ this.href +"'
alt='Image preview' />"+ c +"</div>");

Original href's are similar to: <sitename>.com/images/s/<image_name>.png

I need the following replacement: <sitename>.com/images/m/<image_name>.jpg

So I need to replace the sub-folders and the file extensions within
the line above.


Thanks,

Randy


-- 
If you ask me if it can be done. The answer is YES, it can always be
done. The correct questions however are... What will it cost, and how
long will it take?

Reply via email to