How would I get the script to show the first thumbnail image on pageload in the target div?
How would I get the script to show the first thumbnail image on pageload in the target div?
Just hard code it. Where you have something like:
Just add it right in there:Code:<div id="loadarea" style="width: 600px"></div>
You can even add a caption if you want:Code:<div id="loadarea" style="width: 600px"><img src="sofagirllarge.jpg" alt=""></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.Code:<div id="loadarea" style="width: 600px"><img src="sofagirllarge.jpg" alt=""><br>Nothing better than relaxing on the sofa sometimes</div>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Thanks, that was a great way to get around the problem rather than recoding things
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
Code:<a onclick="window.open(www.yahoo.com,this.target);return false;" href="whatever.htm" target="whatever"><img border="0" src="some.jpg" alt=""></a>
Last edited by borillion; 12-21-2010 at 10:43 PM.
Bookmarks