Forums Carousel

Making carousel rewind

Subscribe to Making carousel rewind 0 post(s), 1 voice

 
Avatar sauronette 2 post(s)

Hello, for another UI Mr. Pibb stunt show, could someone show me some example
code of how to implement the scrollTo: method? Basically I have some code I wrote
like this below. I know that I have to fire the scrollTo(index) event here, in
which if I just want it to rewind and animate to the beginning it would be an index(1)?

I am pretty sure my scrollTo code goes beneath the alert, (using alert for debugging)
because the code reads basically, when you notice the next button disabled, execute
this function. I am just not sure how or where to or the syntax to invoke scrollTo:

document.observe(‘carousel:nextButton:disabled’, function(event) { alert(“Carousel with id ” + event.memo.carousel.id + ” has just been scrolled”);

});

Double Thanks!

Forums Carousel