PDA

View Full Version : Image Thumbnail Viewer II: Initial image & description



Quix
03-07-2007, 09:01 PM
1) Script Title: Image Thumbnail Viewer II

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

3) Describe problem:

Iím trying to make this script load an initial image and its description as soon as the visitor enters the page. Iíve found some solutions for the initial image problem by inserting this code <div id="dynloadarea" style="width:80px;height:225px"><img src="whatever.jpg"></div> but how about loading descriptions too? If I create another layer with the first description of the first image in it, when I click other image, its description will overlap the previous description, although not completely, but making the text unreadable, how can I solve this issue? Thanks!

jscheuer1
03-07-2007, 10:52 PM
Just replace the (red) text in here (from the demo):


<div id="loadarea" style="width: 500px">
This DIV will show my enlarged images!
</div>

With whatever you like, example:


<div id="loadarea" style="width: 500px">
<a href="http://www.google.com/" target="_blank"><img src="image_1.jpg" border="0"></a><br>This is the first image
</div>

Quix
03-08-2007, 01:07 PM
Wow, it's just a <br> tag haha! Thank you jscheuer1! Works perfectly!