Closed ChenRenHu closed 9 years ago
Hi @ChenRenHu!
You can use the api to set the slider to any page (ref):
$('#slider')
.append( '<li><img src="image4.jpg"></li>' )
// update slider
.anythingSlider()
// switch slider to whatever page
.anythingSlider(4);
thank you @Mottie , it really work.
for the function, the following that what i done: $("#slider").appen(newElement); $("#slider").anythingSlider(); var sliderLength = $("#slider").children().length - 2; sliderLength = sliderLength + 1; $("#slider").anythingSlider(sliderLength);
when I add a node into the slider, i want to set it to be the currentpage, how can i do ? in the document , i found the "startPanel" setting, but no working .