开发者

JQuery Cycle Disable Next and Prev on slide

I am working on a slideshow using jquery cycle. One thing I notice is during slide, the user can click a开发者_JAVA技巧nd skip to the next slide before it finishes animating. Does anyone know the best method of disabling "next" and "previous" buttons while the animation is occuring?


Looking at the docs it looks like you could do something using the prevNextClick and after events (disable after prevNextClick and enable after after. The after event seems to be undocumented, but it appears in this demo: http://jquery.malsup.com/cycle/after.html

But if you can provide more information why you want to disable prev/next, someone might be able to give you a better solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜