View Full Version : Image Thumbnail Viewer II | Show 1 image onLoad

01-18-2006, 10:11 PM
Hi. I have implimented the Image Thumbnail Viewer II http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm and it works fine.

However i want one of the images to show in the "dynloadarea" when the webpage opens. At the moment there is just a blank space where the big size images apear when the user passes the mouse over the thumbnail. Can i get one of the images to show automatically when the page opens - rather than having to wait for the user to mouseover thumbnail before any of the pictures apear?

I have tried replacing the 'onMouseover' to 'onLoad' in the body code but this doesnt work. If some one could help or provide a better solution it be VERY thankful! Thanks in advance. ps. You can see the page im working on here: http://www.jeffersonstudios.co.uk/commercial-photography2.htm


01-19-2006, 02:40 AM
This one is easier than it might at first appear. All one need do is write the image tag into the HTML source:

<div id="dynloadarea" style="width:80px;height:225px;"><img src="some.jpg" border="0"></div>

It will load just like a regular image (which is what it is). When someone mouses over a thumbnail, the script will replace the existing image's code with the new image code. You see, the script doesn't care how the image code got there in the first place, it will still overwrite it.

01-19-2006, 07:11 PM
Thanks John for taking time to reply to me. I was sure it would be as simple as that but just didnt think straight! Got it working just as directed. Thanks again!