View Full Version : Large Image Preloaded for Thumbnail Viewer II

08-15-2008, 01:05 AM
1) Script Title: Thumbnail Viewer II

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

3) Describe problem:


I am using the thumb nail viewer II code to load images in my gallery. I was hoping to have the first image in the set already preloaded large when a user navigates to the page. How might I go about accomplishing this?? My page is at www.mikegrantonline.com/popup.html for reference. Thanks in advance!


08-15-2008, 03:24 AM
You can always place an image on the loadarea div:

<div id="loadarea" style="width: 400px">
<img src="defaultIMAGE.jpg" alt="default">

Hope that helps.

08-15-2008, 02:06 PM
Thanks rangana!
worked perfectly. Before I originally posted, I simply put the <img> tag into the load area, and that worked, but in between image selections, you'd have a flash of the first default image appearing. What does the 'alt=default' do? no longer does the image appear when scrolling through the others. Perfect.


08-16-2008, 12:53 AM
alt is an attribute which is displayed at times when the image's failed to show. alt is also a mandatory for your page's validation.

For further reading:

Hope that makes sense.