资 源 简 介
(function($) { // Compliant with jquery.noConflict()
$.fn.jCarouselLite = function(o) {
> o = $.extend({
> > btnPrev: null,
> > btnNext: null,
> > btnGo: null,
> > mouseWheel: false,
> > auto: null,
> > speed: 200,
> > easing: null,
> > vertical: false,
> > circular: true,
> > visible: 3,
> > start: 0,
> > scroll: 1,
> > beforeStart: null,
> > afterEnd: null
> }, o || {});
> return this.each(function() { // Returns the element collection. Chainable.
> var running = false, animCss=o.vertical?"top":"left", sizeCss=o.vertical?"height":"width";
> var div = $(this), ul = $("ul:first", div), tLi = $(".car", ul), tl = tLi.size(), v = o.visible;
> if(o.circular) {
> > ul.prepend(tLi.slice(tl-v-1+1).clone())
> > > .append(tLi.slice(0,v).clone());
> > o.start += v;
> }
> var li = $(".car", ul), itemLength = li.size(), curr = o.start;
> div.css("visibility", "visible");
> li.css({overflow: "hidden", float: o.vertical ? "no