Here's one way (addition/change highlighted):
Code:
<script type="text/javascript">
new phpimagealbum({
albumvar: posters, //ID of photo album to display (based on getpics.php?id=xxx)
dimensions: [5,2],
sortby: ["date", "desc"], //["file" or "date", "asc" or "desc"]
autodesc: "", //Auto add a description beneath each picture? (use keyword %i for image position, %d for image date)
showsourceorder: false, //Show source order of each picture? (helpful during set up stage)
onphotoclick:function(thumbref, thumbindex, thumbfilename){
$.fancybox('<img src="' + thumbref.src + '" alt="">');
}
})
</script>
Or possibly (for a title from the filename):
Code:
<script type="text/javascript">
new phpimagealbum({
albumvar: posters, //ID of photo album to display (based on getpics.php?id=xxx)
dimensions: [5,2],
sortby: ["date", "desc"], //["file" or "date", "asc" or "desc"]
autodesc: "", //Auto add a description beneath each picture? (use keyword %i for image position, %d for image date)
showsourceorder: false, //Show source order of each picture? (helpful during set up stage)
onphotoclick:function(thumbref, thumbindex, thumbfilename){
$.fancybox('<img src="' + thumbref.src + '" alt="">', {title: thumbfilename});
}
})
</script>
Bookmarks