【发布时间】:2012-12-17 10:02:00
【问题描述】:
您好,我对使用 jquery reel 比较陌生。当您将鼠标悬停在 jquery reel http://test.vostrel.cz/jquery.reel/docs/jquery.reel.html 上时,我想了解如何停止和播放。我看到有一个停止、开始和暂停事件,但我不确定如何在悬停时激活它。
谢谢!
<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>
【问题讨论】:
-
你能显示一些代码吗?你已经尝试了什么?另见:stackoverflow.com/questions/how-to-ask
-
感谢帮助,已更新代码。
标签: javascript jquery jquery-reel