PDA

View Full Version : help with image viewer



fenli
09-14-2012, 03:58 PM
Hi, I used the code from this http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm to create a thumbnail image viewer for a client.
Here is what I have http://beadzandbloomz.com/emmypp.php
When it first loads, I'd like to have the first image already on the page instead of having to click on it for it to load on the right. This is driving me crazy! Thanks in advance for any advice! :)

jscheuer1
09-15-2012, 02:48 AM
In the future, please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread.

That said, it's simple. You may put anything you like in the loadarea division. It will be shown on page load and will be overwritten the first time a trigger is activated. Example (from Step 2 on the demo page, additions highlighted):


<a href="http://www.nasa.gov/images/content/167040main_image_feature_738_ys_4.jpg" rel="enlargeimage" rev="targetdiv:loadarea" title="The Universe is just waiting to be explored">Saturn #1</a><br />
<a href="http://www.nasa.gov/images/content/168177main_image_feature_749_ys_4.jpg" rel="enlargeimage" rev="targetdiv:loadarea,link:http://dynamicdrive.com">The Moon #1</a><br />


<div id="loadarea" style="width: 600px">
<div>
<img src="http://www.nasa.gov/images/content/167040main_image_feature_738_ys_4.jpg" alt=""><br />
The Universe is just waiting to be explored
</div>
</div>