Looking for a decent jquery slider that features methods to trigger sliding via code
Any recommendations for开发者_开发技巧 a decent query slider that allows you to call functions via code to allow you to navigate to panels. i.e. $('#mySlider').gotoPanel(3);
The Galleria jQuery plugin can do this. Use .show(index)
.
Shows the image specified as index. You can call this method anytime and the image will be placed in a transition queue.
http://galleria.aino.se/docs/1.2/api/methods/#show-index
jCarousel also supports this via the .scroll(index)
method. Use .data('jcarousel')
to access the instance directly:
$("#mycarousel").data('jcarousel').scroll(10);
I am a big fan of jquery cycle for its flexibility and use of use.
Per your question, $('#div').cycle(3);
goes to slide 2.
Take a look a jquery tools scrollable and methode seekTo(index, speed)
精彩评论