Code:
Folder structure:
root...
images/
images/thumbs/ (all the thumbnails related to all galleries)
images/main/1 (all the images related to gallery1)
images/main/2 (all the images related to gallery2)
index.php (PHP Photo Album script v2.11)
gallery.php (Image Thumbnail Viewer II)
Clicking on any thumbnail on index.php should bring up gallery.php and show the relevant gallery images.
Which onphotoclick event handler could I use, tried all of them like this;
Code:
<script type="text/javascript">
new phpimagealbum({
albumvar: myvacation, //ID of photo album to display (based on getpics.php?id=xxx)
dimensions: [3,2],
sortby: ["file", "asc"], //["file" or "date", "asc" or "desc"]
autodesc: "Photo %i", //Auto add a description beneath each picture? (use keyword %i for image position, %d for image date)
showsourceorder: true, //Show source order of each picture? (helpful during set up stage)
onphotoclick:function(thumbref, thumbindex, thumbfilename){
var largefilename=thumbfilename.split(".")[0] + ".jpg"
thumbnailviewer.loadimage("http://pathto->/images/main/" + largefilename, "fit2screen")
}
/*
***
Tried all the options on onphotoclick event handler
***
*/
})
</script>
Bookmarks