Sorry for the delay. Try the below.
First, when defining the images to be shown inside Photo Gallery script, define both the image's src parameter and link parameter (1st and 3rd) at the very least:
Code:
myvacation[0]=["photo1.jpg", "", "large1.jpg"]
myvacation[1]=["photo2.jpg", "", "large2.jpg"]
myvacation[2]=["photo3.jpg", "", "large3.jpg"]
Also add an arbitrary DIV like the below to the BODY section of your page:
Code:
<div id="enlargedarea"></div>
When a thumbnail is clicked on, it will load the initial image (ie: photo1.jpg) in the DIV above (id=enlargedimage) on the page. When that image is clicked on again, it will load the image specified in the link (ie large1.jpg) using Image Thumbnail Viewer.
So with the above done, install Image Thumbnail Viewer on the same page as where your thumbnails are. You can skip Step 2 in the default instructions.
Finally, make use of the onphotoselect event handler at the end of the gallery's initialization code and containing the code shown:
Code:
myvacation[0]=["photo1.jpg", "", "large1.jpg"]
myvacation[1]=["photo2.jpg", "", "large2.jpg"]
myvacation[2]=["photo3.jpg", "", "large3.jpg"]
"
"
thepics.onselectphoto=function(img, link){
var enlargedarea=document.getElementById('enlargedarea')
enlargedarea.innerHTML='<a href="'+link.href+'" onClick="thumbnailviewer.stopanimation(); thumbnailviewer.loadimage(this); return false"><img src="'+img.src+'"/></a>'
return false
}
Let me know how this works for you.
Bookmarks