jQuery Cycle plugin- How to return the index number of the currently displayed slide?

后端 未结 2 1911
一生所求
一生所求 2021-02-20 15:29

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

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-20 15:46

    To get the current slide use:

    before: function (curr, next, opts) {
        alert("Current slide " + opts.currSlide);
    }
    

提交回复
热议问题