ProLoser/AnythingSlider — Issue #215: Feature request: advance "x" number of slides, then stop
Author: Swisher1115
Created: 2011-11-21 16:36:29+00:00
State: open

Hi there...I have a feature request.

I need the slider to advance through each slide two times, then stop on the first slide. I created a little function to do that, but it only works if someone doesn't interact with the slider in any way. If they use the stop button or any of the arrow or individual slide buttons, the counter is thrown off. It may be where I'm placing the function, or the function itself (I love jQuery but I'm still very new at it).

Here's the function:
var counter = 0;
function advanceCounter() {
counter ++;
if (counter == 11) {
base.startStop(false);
}
}

I'm calling it at the end of the base.setCurrentPage function.

It would be great if a working version of this could be incorporated into the global config options.

Thanks!