View Full Version : Thumbnail Viewer Before and After

03-17-2011, 03:46 PM
I've installed thumbnailviewer, and it works great. After the large image loads, however, I would like people to be able to mouseover the image to see the "before" photo.

Basically, very similar to this post: http://www.dynamicdrive.com/forums/showthread.php?t=55441 only for thumbnailviewer (not thumbnailviewer II). I wish I could extrapolate from that thread, but I'm just not very bright with scripting. :p

Thank you!!

03-18-2011, 05:24 AM
Sure, try the below modified .js file, which changes the enlarged image when you mouse over it to original_over.extension, where "_over" is the new part, and back to the original filename onmouseout. This means if your original enlarged image is "mydog.jpg", you should also have uploaded "mydog_over.jpg" etc.

03-19-2011, 07:54 PM
Thank you so much! I've changed it to onmousedown and onmouseup (and switched it to only close when you hit "Close"). It's working perfectly!