我正在使用http://www.gmarwaha.com/jquery/jcarousellite/的脚本,现在我需要拇指作为导航按钮
我有5个可见的图像,我想要的图像,我点击到中心…有办法解决吗?
我的想法是得到点击项索引如下:
var activeItem = $('.carousel li a').index(this)-2;
,然后将该项设置为start:
$carousel.jCarouselLite({
start: activeItem,
visible: 5
});
这种方法是有效的,但是它打破了"circular: true"的特性。
即使我将start:设置为0以外的任何值,错误也会出现…
尝试使用更新更好的插件https://github.com/kswedberg/jquery-carousel-lite
修复了很多bug