PDA

View Full Version : Getting mouseover to work on Thumbnail Viewer II



slackjeep
04-09-2010, 08:51 PM
1) Script Title: Image Thumbnail Viewer II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

3) Describe problem:

I had this working and now I don't know what I did to kill it. The large image doesn't come up when you mouseover the thumb.

The prototype site is http://dspdesignworks.com/projects/fredy/

Please let me know what else I can share. This is my first post here.

Thanks

jscheuer1
04-10-2010, 02:01 PM
Your copy of the script has become altered somehow. You have:


var imageHTML='<img src="../public_html/scripts/'+imagepath+'" style="border-width: 0" />' //Construct HTML for enlarged image
if (typeof dest!="undefined") //Hyperlink the enlarged image?
imageHTML='<a href="../public_html/scripts/'+dest+'">'+imageHTML+'</a>'

where it should be just:


var imageHTML='<img src="'+imagepath+'" style="border-width: 0" />' //Construct HTML for enlarged image
if (typeof dest!="undefined") //Hyperlink the enlarged image?
imageHTML='<a href="'+dest+'">'+imageHTML+'</a>'

Either restore the original code or get a fresh copy of the script from the demo page and use it in place of yours.

slackjeep
04-10-2010, 05:08 PM
Ah, yes, I did move files around. I figured it would be something stupid that I did. Thanks, that fixed it.