fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
var tmptitle=(this.theimages[picindex][3]!=undefined)?this.theimages[picindex][3]:"";
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px" title="'+tmptitle+'">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
og:
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["photo1.jpg", "", ""] //plain image syntax
fadeimages[1]=["photo2.jpg", "
http://www.cssdrive.com", ""] //image with link syntax
fadeimages[2]=["photo3.jpg", "
http://www.javascriptkit.com", "_new","titeltekst"] //image with link and target syntax and title text