我正在尝试用控件制作一个简单的jQuery滑块/旋转木马。当我点击左右箭头时,我想要滑进或出3 div。我暂时不需要自动播放。我只想说我在网上尝试过很多插件和教程。// wanted to use for slide number
$('.slider .right').click(function(){
$slide.animate({'clicked right arrow, doesn't have to be here if there i
我在0和total之间循环一个数字。问题是,它需要从currentIndex中创建,它不应该更多的total (我需要用同样的方式从currentIndex中判断值,但不应该少于0 )。currentIndex + amount) % total + 1
var num = e.target.className == 'prev