JQuery roundabout - 获取所选
我使用的 JQ roundabout 插件来自:
http://frdhq.com/projects/roundabout/
让它设置并工作 - 但很难让一个可挂钩的事件工作。 任何演示中都没有真正的语法示例,因此这可能只是我的愚蠢。
我按如下方式启动循环:
<script>
$(document).ready(function() {
$('#productRoundel').roundabout(
{
shape: 'tearDrop',
focusBearing: '5.0'
});
$("#productRoundel").roundabout.animationEnd(function() {
alert("hello");
});
});
</script>
任何人都可以给我一个有关正确语法的指针,以在动画完成后触发事件,以便我可以获得当前幻灯片的 ID?
谢谢, 史蒂夫
I'm using the JQ roundabout plugin from:
http://fredhq.com/projects/roundabout/
Have it set up and working - but struggling to get one of the hookable events to work.
There's not really a syntax example on any of the demos so it may just be my stupidity.
I'm initiating the roundabout as follows:
<script>
$(document).ready(function() {
$('#productRoundel').roundabout(
{
shape: 'tearDrop',
focusBearing: '5.0'
});
$("#productRoundel").roundabout.animationEnd(function() {
alert("hello");
});
});
</script>
Can anyone give me a pointer on the correct syntax to get an event triggering once the animation has completed so that I can then get the ID of the current slide?
Thanks,
Steve
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
免责声明:我尚未测试或使用此插件,但您应该能够绑定到事件来侦听它。
Disclaimer: I have not tested or used this plugin, but you should be able to bind to the event to listen for it.