This is my shot at a slideshow (I'm seeking feedback). It employs the incredible scriptaculous effects library for the transition effects. See page source for implementation, additional notes follow.
A slideshow builder is also in the works. It will allow you to plug in image URLs, write titles and captions and sort slides. All of the javascript required for the slideshow will then be made available to you to plug into your page. That's the plan, anyway.
Slides are made up of a title, image and caption. The entire slide (title, image and caption) transition when a slide changes.
The slideshow is built within a parent div; the id of the parent is specified when invoking the Slideshow.construct('<parent ID>') method. The parent div must have layout (at least height and width) so that content flow is maintained. The following css classes are assigned to the slideshow:
The slideshow requires an array whose elements include the image url (string), caption (string), a click event (string - not presently implemented), title (string), slide width (int), slide height (int). The array elements look like:
Instantiate a slideshow in script:
Construct the slideshow within the parent div:
The following methods are available: