Class YAHOO.extension.Carousel

The carousel class manages a content list (a set of LI elements within an UL list) that can be displayed horizontally or vertically. The content can be scrolled back and forth with or without animation. The content can reference static HTML content or the list items can be created dynamically on-the-fly (with or without Ajax). The navigation and event handling can be externalized from the class.
Defined in: carousel.js.

Moves the content to place itemNum as the start item in the view
(if size is specified, the last element will not scroll past the end.)
Ignores animation speed & method; moves directly to the item.
Note that you can also set the firstVisible property upon initialization
to get the carousel to start at a position different than 1.

Parameters:

{number}newStart

The item to move directly to.

reload(numVisible)

Clears all items from the list and calls the loadInitHandler to load new items into the list.
The carousel size is reset to the original size set during creation.

Parameters:

{number}numVisible

Optional parameter: numVisible.
If set, the carousel will resize on the reload to show numVisible items.

scrollNext()

Simulates a next button event. Causes the carousel to scroll the next set of content into view.

scrollPrev()

Simulates a prev button event. Causes the carousel to scroll the previous set of content into view.

scrollTo(newStart)

Scrolls the content to place itemNum as the start item in the view
(if size is specified, the last element will not scroll past the end.).
Uses current animation speed & method.