jQuery Cycle插件 - 如何返回当前显示的幻灯片的索引号? [英] jQuery Cycle plugin- How to return the index number of the currently displayed slide?

查看:86
本文介绍了jQuery Cycle插件 - 如何返回当前显示的幻灯片的索引号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用 Malsup的Cycle插件。我只是想知道是否有可能让循环插件返回当前显示的幻灯片的索引号?

I'm currently using Malsup's Cycle plugin . I am just wondering is it possible to have cycle plugin return the index number of the currently displayed slide??

我想在特定幻灯片处于活动状态时更改页面内容。不知道怎么做..

I want to change the content of the page when a specific slide is active. Don't know how to achieve that..

推荐答案

你可以这样做:


//on before function
before: function (curr, next, opts) {
    alert(opts.nextSlide + " of " + opts.slideCount);
} 

希望有所帮助

这篇关于jQuery Cycle插件 - 如何返回当前显示的幻灯片的索引号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆