The main script is not associated with the page. Follow the instructions in Step 1 on the demo page, including downloading the script and placing it in the same folder as your page.
Also, there are several typos and/or mistakes in your initialization code:
Code:
<script type="text/javascript">
//Define your own array to hold the photo album images
//Syntax: ["path_to_thumbnail", "opt_image_title", "opt_destinationurl", "opt_linktarget"]
var events="Images/photos/Christmas Dinner"
christmasdinner[0]=["picture 343.jpg", Timi Naomi Cherish, "photo1-large.jpg"]
christmasdinner[1]=["picture 344.jpg", "Daniel", ""]
christmasdinner[2]=["picture 345.jpg", "Cherish", "photo3-large.jpg"]
christmasdinner[3]=["picture 346.jpg", "Cherish and Daphne", ""]
christmasdinner[4]=["picture 347.jpg", "", "", ""]
christmasdinner[5]=["picture 348.jpg", "", ""]
christmasdinner[6]=["picture 349.jpg", "", ""]
//initiate a photo gallery
//Syntax: new photogallery(imagearray, cols, rows, tablewidth, tableheight, opt_[paginatetext_prefix, paginatetext_linkprefix])
var events=new photogallery(christmasdinner, 5, 3, '700px', '600px', [Browse gallery:', 'Page']))
//OPTIONAL: Run custom code when an image is clicked on, via "onselectphoto"
//DELETE everything below to disable
//Syntax: function(img, link){}, whereby img points to the image object of the image, and link, its link object, if defined
events.onselectphoto=function(img, link){
if (link!=null) //if this image is hyperlinked
window.open(link.href, "", "width=800, height=600, status=1, resizable=1")
return true //cancel default action when clicking on image, by returning false instead of true
}
</script>
It should be:
Code:
<script type="text/javascript">
//Define your own array to hold the photo album images
//Syntax: ["path_to_thumbnail", "opt_image_title", "opt_destinationurl", "opt_linktarget"]
var event="Images/photos/Christmas Dinner"
var christmasdinner = []
christmasdinner[0]=["picture 343.jpg", "Timi Naomi Cherish", "photo1-large.jpg"]
christmasdinner[1]=["picture 344.jpg", "Daniel", ""]
christmasdinner[2]=["picture 345.jpg", "Cherish", "photo3-large.jpg"]
christmasdinner[3]=["picture 346.jpg", "Cherish and Daphne", ""]
christmasdinner[4]=["picture 347.jpg", "", "", ""]
christmasdinner[5]=["picture 348.jpg", "", ""]
christmasdinner[6]=["picture 349.jpg", "", ""]
//initiate a photo gallery
//Syntax: new photogallery(imagearray, cols, rows, tablewidth, tableheight, opt_[paginatetext_prefix, paginatetext_linkprefix])
var events=new photogallery(christmasdinner, 5, 3, '700px', '600px', ['Browse gallery:', 'Page'])
//OPTIONAL: Run custom code when an image is clicked on, via "onselectphoto"
//DELETE everything below to disable
//Syntax: function(img, link){}, whereby img points to the image object of the image, and link, its link object, if defined
events.onselectphoto=function(img, link){
if (link!=null) //if this image is hyperlinked
window.open(link.href, "", "width=800, height=600, status=1, resizable=1")
return false //cancel default action when clicking on image, by returning false instead of true
}
</script>
Once all that is fixed, the images are not on the server in the locations indicated in the code, fix that.
There could also be other problems.
Bookmarks