PDA

View Full Version : Image Thumbnail Viewer



web777
01-04-2005, 07:26 AM
Image Thumbnail Viewer :confused:
http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

Need help with code -> I have the following questions ->
1. When I try to put more images than one, I get a redex on the second image but the first image function.
2. The tag: <div id="showimage"> when put by the second image nothing functions.
3. What is my problem here? How do I put 10 different images on one side and where should I put the tag? ( I know its in the body) but where exactly.

Minos
01-04-2005, 09:07 AM
You only want one div statement. A final piece would look like:

<div id="showimage">
<a href="photo1.jpg" onClick="return enlarge('photo1.jpg',event)"><img src="thumbnail.gif" border="0"></a>

<a href="lemoncake.jpg" onClick="return enlarge('lemoncake.jpg',event,'center',300,375)">Lemon Cake (centered)</a>
</div>

ddadmin
01-04-2005, 12:57 PM
If I understood you correctly, you're trying to show more than one enlarged image simultanously when the user clicks on a thumbnail? Unfortunately that's currently not possible with this script. Each thumbmail can only launch one enlarged image. Also, as Minos mentioned, the tag:

<div id="showimage"></div>

needs to be unique on the page.