如何让我的幻灯片循环?

时间:2012-11-04 12:00:40

标签: jquery jquery-ui jquery-slider

在最后一张幻灯片后,我的幻灯片放映幻灯片顺序从第一张幻灯片开始,我希望它循环..我不知道该代码中有什么变化,我是初学者。如果有人回答我会非常感激...

//direction settings
    if(opts.direction == 'right'){
        cur = maxi; //starting from last slide
        autoMove = opts.prev; //changing the auto-scroll direction
    $(opts.slides).children().each(function(e){ //inverting the slide order
            if(e = 0){
                var child = $(this).detach();
                $(opts.slides).prepend(child);
            }
    });
    }

0 个答案:

没有答案