line, ie/
var running = false, animCss=o.vertical?"top":"left"
is the same as
var running = false;
var animCss=o.vertical?"top":"left";
if you don't understand conditional if statements, an example is that
the value of "animCss" is set to "top" or "left" depending on whether
o.vertical evaluates to true or false
On Jun 4, 9:37 am, runrunforest <craigco...@gmail.com> wrote:
> (function($) {
> $.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() {
>
> var running = false, animCss=o.vertical?"top":"left",
> sizeCss=o.vertical?"height":"width";
> var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl =
> tLi.size(), v = o.visible;
>
> });
>
> };
> })(jQuery);
>
> I don't understand this part
>
> var running = false, animCss=o.vertical?"top":"left",
> sizeCss=o.vertical?"height":"width";
> var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size
> (), v = o.visible;
>
> Can you fully translate it for me please.
No comments:
Post a Comment