Start over with a fresh copy of Ultimate Fade-In Slideshow (v1.51). The one you have now has been edited incorrectly. Follow the recommended syntax for the array. Where you now have:
Code:
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["/gallery/big/p4choke.jpg", "/gallery/big/p4jjfly.jpg", "/gallery/big/p4roll.jpg", "/gallery/big/p4snailmouth.jpg"]
It needs to follow this pattern:
Code:
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["/gallery/p4chokeTN.jpg", "/gallery/big/p4choke.jpg", ""]
fadeimages[1]=["/gallery/p4jjflyTN.jpg", "/gallery/big/p4jjfly.jpg", ""]
fadeimages[2]=["/gallery/p4rollTN.jpg", "/gallery/big/p4roll.jpg", ""]
fadeimages[3]=["/gallery/p4snailmouthTN.jpg", "/gallery/big/p4snailmouth.jpg", ""]
And in the main part of the script only edit the one function exactly as shown (highlighted):
Code:
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" rel="lightbox" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
In your version it appears as though you clipped the code of the function above that, breaking the script. As I say though, start over with a fresh copy.
Bookmarks