Home Image Effects PHP Photo Album script Developer's View
<html>
<head>
<script type="text/javascript"
src="http://www.mysite.com/myimages/getalbumpics.php?id=myvacation"></script>
<script type="text/javascript">
//Optional, manual description for particular pictures inside album
//Syntax: albumid.desc[index]="Picture description here"
//eg: myvacation.desc[2]="This is description for the 3rd picture in the album"
//eg: myvacation.desc[6]="This is description for the 7th picture in the album"
</script>
<script type="text/javascript" src="ddphpalbum.js">
/***********************************************
* PHP Photo Album script v2.0- (c) Dynamic Drive DHTML code library
(www.dynamicdrive.com)
* Please keep this notice intact
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s
more
***********************************************/
</script>
<link rel="stylesheet" type="text/css" href="ddphpalbum.css"
/>
</head>
<body>
<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){
thumbnailviewer.loadimage(thumbref.src, "fit2screen")
}
})
</script>
</body>
</html>