Ultimate Fade-in slideshow
http://www.dynamicdrive.com/dynamici...nslideshow.htm
I want to feature four instances of slideshows on the page which works fine.
However, I would like to put a different start delay into each so that the images will change individually not all together but with the same delay between changes.
I thought I was on the right track by putting an extra parameter in the callthen:Code:for startdelay: new fadeshow(fadeimages3, 319, 229, 0, 4000, 1, "R", 4000);
and further down:Code:function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder, startdelay){ this.startdelay=startdelay
This caused an error with fadewidth and fadeheight not being defined, so I added:Code:if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox) setTimeout("document.write('<div id=\"master'+this.slideshowid+'\" style=\"position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;\"><div id=\"'+this.canvasbase+'_0\" style=\"position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'\"><\/div><div id=\"'+this.canvasbase+'_1\" style=\"position:absolute;width:'+this.fadewidth+'px;height:'+this.fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'\"><\/div><\/div>')", this.startdelay) else setTimeout("document.write('<div><img name=\"defaultslide'+this.slideshowid+'\" src=\"'+this.postimages[0].src+'\"><\/div>')", this.startdelay)
Now I'm getting error: picobj is nullCode:this.fadewidth=fadewidth this.fadeheight=fadeheight at the start and commented out: //var fadewidth=fadewidth+this.imageborder*2 //var fadeheight=fadeheight+this.imageborder*2, adding "this." to the document.write
Any ideas?
cheers



Reply With Quote

Bookmarks