PDA

View Full Version : Photo Album script v2.0- Gallery Not Visible



CrystalSC
02-06-2010, 03:28 AM
1) Script Title: Photo Album script v2.0

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/photoalbum.htm

3) Describe problem: I'm seeing nothing on my page. I've added the photogallery.js to my root folder and I've added the css to the head of the page. Also, as described I placed the code into the body of the page. Yet there's nothing at all appearing. I'm sure I have something wrong on the code. Can someone spot what I'm obviously not seeing? :confused:

http://test.thenewdeep.com/bawallpapers.html

Body 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 photogallery=new Array()
BAngel Wallpapers[0]=["http://s38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/th_waterfall1280x800_crystalsc.png", "Melt With You: 1280x800", "http://i38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/waterfall1280x800_crystalsc.png"]
BAngel Wallpapers[1]=["http://s38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/th_waterfall1280x800_crystalsc.png", "Melt With You: 1280x1024", "http://i38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/waterfall1280x1024_crystalsc.png"]
BAngel Wallpapers[2]=["http://s38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/th_chaircolor1280x800_crystalsc.png", "One Love: 1280x800", "http://i38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/chaircolor1280x800_crystalsc.png"]
BAngel Wallpapers[3]=["http://s38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/th_chaircolor1280x800_crystalsc.png", "One Love: 1280x1024", "http://i38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/chaircolor1280x1024_crystalsc.png"]
BAngel Wallpapers[4]=["http://s38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/th_BAManipWall1WIDE.png", "You Can Love Me: 1280x800", "http://i38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/BAManipWall1WIDE.png"]
BAngel Wallpapers[5]=["http://s38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/th_BAManipWall1WIDE.png", "You Can Love Me: 1280x1024", "http://i38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/BAManipWall1.png"]
BAngel Wallpapers[6]=["http://s38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/th_BAManipWall2WIDE.png", "Stars By Night: 1280x800", "http://i38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/BAManipWall2WIDE.png"]
BAngel Wallpapers [7]=["http://s38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/th_BAManipWall2WIDE.png", "Stars By Night: 1280x1024", "http://i38.photobucket.com/albums/e123/CrystalFanArt/Wallpapers/BAManipWall2.png"]

//initiate a photo gallery
//Syntax: new photogallery(imagearray, cols, rows, tablewidth, tableheight, opt_[paginatetext_prefix, paginatetext_linkprefix])
var thepics=new photogallery(BAngel Wallpapers, 4, 3, '700px', '600px')

//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
thepics.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>


Thanks for any and all guidance!