JQuery环形交叉路口 - 获取所选的ID< lI>每次环形交叉口完成移动 [英] JQuery roundabout - getting ID of selected <lI> each time the roundabout finishes moving
问题描述
我正在使用JQ环形交叉插件:
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>
任何人都可以给我一个关于正确语法的指针,以便在动画完成后触发事件然后我可以获得当前幻灯片的ID?
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?
谢谢,
Steve
Thanks, Steve
推荐答案
免责声明:我没有测试或使用过此插件,但你应该能够绑定到该事件来监听它。
Disclaimer: I have not tested or used this plugin, but you should be able to bind to the event to listen for it.
<script>
$(document).ready(function() {
$('#productRoundel').roundabout(
{
shape: 'tearDrop',
focusBearing: '5.0'
});
$("#productRoundel").bind( 'animationEnd', function() {
alert("hello");
});
});
这篇关于JQuery环形交叉路口 - 获取所选的ID< lI>每次环形交叉口完成移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!