嗨我是一個相對較新的使用jQuery卷軸。當您將鼠標懸停在jQuery卷軸http://test.vostrel.cz/jquery.reel/docs/jquery.reel.html上時,我想知道如何停止並播放。我看到有停止,開始和暫停事件,但我不確定如何在懸停時激活它。停止/播放懸停jquery卷軸
謝謝!
<img id="image360" src='1.jpg' width="610" height="480" />
<script>
$(function(){
//pause on hover (This does not work although hover is registered)
$('#image360').hover(function() {
('#image360').pause();
},
function() {
('#image360').play();
});
//360 settings
$('#image360').reel({
indicator: 5,
cw: true,
frame: 36,
speed: -0.3,
velocity: 2,
brake: .2,
images: 'cmopen/#.jpg'
});
});
</script>
你能顯示一些代碼嗎?你已經嘗試了什麼?另見:http://www.stackoverflow.com/questions/how-to-ask – Spontifixus
非常感謝幫助,更新了代碼。 – davidinblack