Py学习  »  Jquery

jquery动态jcarsoul将其设置为自动运行

Petras • 7 年前 • 1934 次点击  

我用这个 jCarousel jQuery插件。

如何将单击模式更改为自动运行模式?

当前场景:单击Next(下一步)时,将显示下三个图像。 单击“上一步”时,将显示前三个图像。

我想将此方案更改为:

当它加载时,插件应该开始运行(图片)。我还需要“下一步”和“上一步”按钮。当用户单击后退按钮时,它应该显示前三个图像并向后运行图像。

有可能吗?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/30846
文章 [ 2 ]  |  最新文章 7 年前
Petras
Reply   •   1 楼
Petras    15 年前
// Uncomment the following option if you want items
// which are outside the visible range to be removed
// from the DOM.
// Useful for carousels with MANY items.
auto: 1,
// wrap: 'last',
wrap: 'circular',
// easing: 'BounceEaseOut',
// vertical: true,
animation: 2500,
visible: 3,
speed:1000 ,
wrap: 'circular',

// itemVisibleOutCallback: {onAfterAnimation: function(carousel, item, i, state, evt) { carousel.remove(i); }},
itemLoadCallback: mycarousel_itemLoadCallback

这解决了我的问题。

Nathan Taylor
Reply   •   2 楼
Nathan Taylor    16 年前

如果你看一下 other examples ,你会注意到: Carousel with autoscrolling .