// the onload event handler that starts the fading.
startSlideShow: function () {
var _t = this;
- window.setInterval(function () {
- _t.play() }, this.wait);
-
+
+ this.play.defer(this.wait, this);
+
this.playButton && this.playButton.hide();
this.pauseButton && this.pauseButton.show();
imageHide = this.iImageId;
if (imageShow == this.numOfImages) {
- this.swapImage(0,imageHide);
+ this.swapImage(0,imageHide);
+
this.iImageId = 0;
} else {
this.swapImage(imageShow,imageHide);
this.textIn = this.iImageId+1 + ' of ' + this.numOfImages;
this.updatecounter();
+ this.play.defer(this.wait, this);
},
stop: function () {