Authored by wenjiekong

添加自动播放方法(指定时间后,点击next)

... ... @@ -30,9 +30,9 @@
}
function autoClickNext(dom) {
var delaytime = delaytime in options ? options.delaytime :
var delaytime = 'delaytime' in options ? options.delaytime :
$.fn.slider2.defaults.delaytime;
timer = setInterval(function() {
dom.find('.next').click();
}, delaytime);
... ...