如何通过onmouseover事件停止cSlider的自动播放功能?
HTML:
<div id="da-slider" class="da-slider">
<div class="da-slide">
<p>Text</p>
</div>
<div class="da-slide">
<p>More text</p>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
到目前为止我用jQuery尝试了什么:
$(function() {
$('#da-slider').cslider({
autoplay : true,
bgincrement : 450
});
});
$('#da-slider').hover(function() {
if($('#daslider').autoplay('true')){
autoplay: false
}
}, function () {
autoplay: true
});
Run Code Online (Sandbox Code Playgroud)
这是我正在使用的那个:
http://tympanus.net/codrops/2012/03/15/parallax-content-slider-with-css3-and-jquery/