You could change the startStop
function to this (notice var extraTime
):
// Handles stopping and playing the slideshow
// Pass startStop(false) to stop and startStop(true) to play
base.startStop = function(playing){
if(playing !== true) playing = false; // Default if not supplied is false
// Update variable
base.playing = playing;
// Toggle playing and text
if(base.options.autoPlay) base.$startStop.toggleClass("playing", playing).html( playing ? base.options.stopText : base.options.startText );
var extraTime = 0;
if(base.currentPage == 1){
extraTime = base.options.delay;
}
if(playing){
base.clearTimer(); // Just in case this was triggered twice in a row
base.timer = window.setInterval(function(){
base.goForward(true);
}, base.options.delay + extraTime);
} else {
base.clearTimer();
};
};
This is in line 223 of jquery.anythingslider.js
.