幻灯片幻灯片ID

时间:2011-12-05 02:44:47

标签: jquery

我正在使用SlidesJS作为自定义产品库,但我无法识别当前幻灯片。 我用过animationStart:function(当前)但是当我使用导航时并不准确。所有这些的范围是从当前幻灯片的标题中获取一些内容。

谢谢, 索林!

1 个答案:

答案 0 :(得分:1)

根据animationComplete()的{​​{3}}:

  $("#slides").slides({
    animationComplete: function(current) {
        console.log(current); // Log the current slide number to the console
    }
  });
相关问题