
Originally Posted by
rigbee
Thanks ddadmin.
I'm still a little stuck. What I'm coming down to is the one of the following:
1. Using Image Thumbnail Viewer IF I can have one of the gallery images load when the page loads.
Again, any help greatly appreciated - rigbee
Sure, you can modify the Thumbnail Viewer script so a particular thumbnail link's image is enlarged and shown automatically when the page loads. First, inside the .js file, add the lines in red below to the original:
Code:
pagelinks[i].onclick=function(){
thumbnailviewer.stopanimation() //Stop any currently running fade animation on "thumbbox" div before proceeding
thumbnailviewer.loadimage(this) //Load image
return false
}
if (pagelinks[i].getAttribute("rev")=="defaultload")
thumbnailviewer.loadimage(pagelinks[i])
Then on your page, for the thumbnail link in which you wish its enlarged image to show automatically (instead of via a click), add a "rev" attribute inside the link:
Code:
<p><a href="http://img184.imageshack.us/img184/1159/castleyi6.gif" rel="thumbnail" rev="defaultload" title="This is beautiful castle for sale!">Castle</a></p>
<p><a href="http://img201.imageshack.us/img201/6923/countryxb6.gif"" rel="thumbnail">Country</a></p>
Bookmarks