View Full Version : Ultimate Fade-in slideshow (v1.5) - Run function when restarting loop?

05-17-2006, 11:31 AM
Ultimate Fade-in slideshow (v1.5)

I want to modify this script so that i can run a fuction when the fadeshow loop is restarting. So if I have ten pictures, I want to run my function right after my tenth picture is shown (and before picture one is displayed again).

Anyone knows how my if statement should look like and where i should place it?


05-17-2006, 11:39 AM
In fadeshow.prototype.rotateimage, find:
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0Replace with:
if(this.curimageindex < this.postimages.length - 1)
else {
this.curimageindex = 0;
// Put your code here