The default built-in lightbox script that comes with PHP Album can only display images, and not rich HTML. If you need to do the later, you should change the onphotoclick event handler to load a viewer that's capable of showing HTML, the simplest being just a pop up window. For example:
Code:
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){
window.open("popup"+thumbindex+".htm", "", "width=900px,height:800px")
}
})
Here I'm assuming your enlarged images are saved in popup0.htm, popup1.htm, etc, where the trailing number corresponds to the source index of the thumbnail image clicked on. On these pages, you can include rich HTML, such as Adsense.
Bookmarks