View Full Version : Image Thumbnail Viewer II

12-19-2010, 01:33 AM
How would I get the script to show the first thumbnail image on pageload in the target div?

12-19-2010, 07:35 AM
Just hard code it. Where you have something like:

<div id="loadarea" style="width: 600px"></div>

Just add it right in there:

<div id="loadarea" style="width: 600px"><img src="sofagirllarge.jpg" alt=""></div>

You can even add a caption if you want:

<div id="loadarea" style="width: 600px"><img src="sofagirllarge.jpg" alt=""><br>Nothing better than relaxing on the sofa sometimes</div>

Whatever you put in there, it will be overwritten as soon as one of the triggers is activated. So you could even put something else in there - say, instructions, if you like.

12-21-2010, 10:22 PM
Thanks, that was a great way to get around the problem rather than recoding things :D

One more thing Im stuck on I want to load a different page than what the thumbnails have as links, is there a way I can do that? I dont want it to simply open the image in the same or new page, I was trying to use onclick and target="_blank" but I couldn't get it to work right :(
something like this

<a onclick="window.open(www.yahoo.com,this.target);return false;" href="whatever.htm" target="whatever"><img border="0" src="some.jpg" alt=""></a>