Uhm, I’m sorry but it’s still not clear what that number does!
From what I understand it should “set the current slide”, but what does that mean? If I change the number nothing changes…
cc @Mottie ;)
The code you are seeing:
var changeToSlide = 6;
is how to change the slide AFTER Anything has initialized. So, if you add a button (or link, or whatever) to your page and add this code:
// initialize the slider
// click the button to change to slide 3
Run [this demo](http://jsfiddle.net/Mottie/ycUB6/5309/), click on the button and you’ll see the slider change to the third slide (there are only 5 slides).
If you want to start the slider on the third slide, then set the [`startPanel` option](https://github.com/CSS-Tricks/AnythingSlider/wiki/Navigation-options#startpanel-1) to whatever number slide you want to start on:
// initialize the slider, and start on the third panel
Oh! Thanks!! Clear now! :-)
You must be logged in to reply to this topic.