Prototype UI Carousel

82 views
Skip to first unread message

zion

unread,
Dec 23, 2009, 10:24:15 AM12/23/09
to Prototype & script.aculo.us
Hi,

I have a big problem with prototype UI Carousel. Instead of using the
"next_button" and "previous_button", I need to access carousel
elements from a menu. For example clicking a menu link inside <li
class="slide4"> i need the carousel to scroll to the fourth carousel
element.

Could it really be so that there is no possibility to scroll to a
specific carousel element from a custom button? Only next and
previous...?

Actually I am using (or trying to use) the carousel to scroll the
entire content on my page only showing one carousel item(width:960px)
at a time. Should I try to use some other carousel instead(jquery..)?

Thanks for all answers!

Chris

unread,
Dec 29, 2009, 11:00:26 AM12/29/09
to Prototype & script.aculo.us
Hi,

as stated in the official documentation, there is a method you can
use, see http://docs.prototype-ui.com/rc0/Carousel?anchor=UI.Carousel.scrollTo
(should be something like yourcarouselinstance.scrollTo(2) for the
second container).

Hope this helps.

Greetings from Germany,
Chris

Reply all
Reply to author
Forward
0 new messages