我在我的一个项目中使用 jcarousellite。这是我到目前为止的代码。
$(".carousel").jCarouselLite({
btnNext: ".next",
btnPrev: ".prev",
speed: 700,
visible: 8,
afterEnd: function(a){
// set the now first element to the active video
$(a[0]).addClass("active");
},
});
唯一的问题是我的列表项直到
$(document).ready(function(){
// generate list items
});
我想在加载列表项后生成我的轮播。我可以为此使用 jQuery 的 .live() 吗?有任何想法吗?