/** * jCarousel - Riding carousels with jQuery * http://sorgalla.com/jcarousel/ * * Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * Built on top of the jQuery library * http://jquery.com * * Inspired by the "Carousel Component" by Bill Scott * http://billwscott.com/carousel/ */ jQuery.fn.extend({ /** * Creates a carousel for all matched elements. * * @example $("#mycarousel").jcarousel(); * @before * @result *
* * *
* *
*
* * @name jcarousel * @type jQuery * @param Hash o A set of key/value pairs to set as configuration properties. * @cat jCarousel */ jcarousel: function(o) { return this.each(function() { new jQuery.jcarousel(this, o); }); } }); jQuery.extend({ /** * The jCarousel object. * * @constructor * @private * @name jQuery.jcarousel * @param Object e The element to create the carousel for. * @param Hash o A set of key/value pairs to set as configuration properties. * @cat jCarousel */ jcarousel: function(e, o) { // Public api of the jCarousel object passed to the // handler callback functions. var publ = this; /** * Returns the scope of the carousel which is the outer *
element containing the required markup (