View Full Version : Thumbnail Viewer II, small modification

05-20-2008, 08:58 PM
1) Script Title: Thumbnail Viewer II

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

3) Describe problem: I have used this script and it works great. I did try to make one modification though, and it seems to be causing a problem I need help fixing. I added a div around the image that shows up when you mouse over. For some reason having this div with the color and border around it makes it so the link does not work. When I take the style part of the div off it works. Here is my code and the url of the page.

imageHTML='<a href="'+dest+'">'+'<DIV ALIGN="center" CLASS="pics">'+imageHTML+'</a>'
if (description!="") //Use title attr of the link as description?
imageHTML+='<br />'+description + '</DIV>'


The images swap, but the link to go the url doesn't work.

05-20-2008, 09:06 PM
nevermind :)

I moved the div outside the A HREF and it worked!