Prototype Carousel Class for Ruby on Rails
Posted by Daniel Butler Wed, 06 Sep 2006 23:32:00 GMT
Sébastien Gruhier of Carquefou, France, a new Rails convert (after 13 years of C++/Java) has provided a handy Prototype/Scriptaculous Carousel component, which does not use any Yahoo User Interface JavaScript components. A carousel component allows you to view a window into a image stream, with forward and reverse buttons that allow you to navigate through the images.
Yahoo’s page describes the component:
The carousel component manages a list of content (HTML UL and LI elements) 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 current version supports both static and Ajax content.
Prototype Carousel Component Home Page
Original Carousel Component Documentation


Has anyone been able to implement this component with the vertically scrolling functionality? I tried adding: orientation:”vertical”, to carousel.js, but no luck. Yahoo has this functionality. I’m sure it’s just a few lines of code to make this happen, but I’m stumped.