View Full Version : Make the thumbnail a link

05-25-2007, 09:11 PM
1) Script Title: Image Thumbnail Viewer II

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

3) Describe problem: Can anyone tell me how to make the "thumbnails" or the "small images" go to a hyperlink?

I see that the enlarged version is hyperlinked and I want to do the same on smaller image.

Any support will be greatly appreciated!

05-26-2007, 06:47 AM
There was an earlier version of this script that made that sort of thing much easier. However, this sort of syntax works fairly well with this version:

<a href="photo1.jpg" rel="enlargeimage::mouseover" rev="loadarea::http://www.dynamicdrive.com" title="This is an example"><img title="Click for Google" src="photo1_thumb.jpg" alt="Thumbnail Example 1" border="0" onclick="window.open('http://www.google.com/','_self');"></a>

In the above example, hovering the image will in most browsers (in addition to revealing the larger image, etc. in the loadarea) give its (the image's) title attribute "Click for Google" as a 'tool tip' and link to Google if clicked due to its (the image's) onclick event.

06-14-2007, 04:38 PM
You are using a link and not a thumbnail for the mouseover, is there anyway of making that a link to what you want it to open?

Basically I'm using the script to mouseover a link to preview the first page of the document that will open on a click.