答案 0 :(得分:0)
要在悬停时暂停,请将这些行添加到_loadEvents函数:
this.$slides.on({
mouseenter: function(){
if( _self.options.autoplay ) {
clearTimeout( _self.slideshow );
}
},
mouseleave: function(){
var default_interval = _self.options.interval;
if(_self.options.autoplay ) {
_self.options.interval = 500;
_self._startSlideshow();
_self.options.interval = default_interval;
}
}
});
假设您正在使用Parallax Content Slider