The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript AnythingSlider: parameter on function to call plugin

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #44006

    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](, 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]( to whatever number slide you want to start on:


    // initialize the slider, and start on the third panel
    startPanel: 3



    Oh! Thanks!! Clear now! :-)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.