The setup for executing this script is as follows:
<div class="foo">
<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
....
</ul>
</div>
You can define a carousel based on a simple html list.
This can be applied to different html groups.
(i.e., you can replace <ul> with <div>, and <li> with <p>, etc...)
The plugin element is initialized as follows:
<script type="text/javascript">
$(function(){
$("div.foo").carousel();
});
</script>
Options can be passed to the jquery.carousel method in the form of an associative array:
// Vertical carousel
$("div").carousel( { direction: "vertical" } );
Demo




// Looping carousel
$("div").carousel( { loop: true } );
Demo




// Carousel with screen / only 3 items
$("div").carousel( { dispItems: 3 } );
Demo






// Carousel with pagination
$("div").carousel( { pagination: true } );
Demo




// Automatically click the Next button (automatic carousel)
$("div").carousel( { autoSlide: true } );
Demo




// Automatically click the Next button every 5 secs (automatic carousel)
$("div").carousel( {
autoSlide: true,
autoSlideInterval: 5000
} );
Demo




// Automatically click the Next button every 5 secs, with a delay of 2 secs between each click
$("div").carousel( {
autoSlide: true,
autoSlideInterval: 5000,
delayAutoSlide: 2000
} );
Demo




// Carousel with fading
$("div").carousel( { effect: "fade" } );
Demo




// Carousel that slides in with bounce-type easing
$("div").carousel( { slideEasing: "easeOutBounce" } );
Demo




// Carousel slides in with slower animation
$("div").carousel( { animSpeed: "slow" } );
Demo




Please contact the author to submit your suggestions, report a bug, or suggest improvements at this address: thomaslanciaux4(at)gmail(point)com
Translated from french by Michael Grant