I use this code and it's working fine on main page, but it doesn't work when you get new content thr开发者_StackOverflow社区ough ajax (f.i. clicking on 'Recomendados' link)
$('.videoList').livequery(function(){
$(this).after('<div id="nav">').cycle({
sync: 0,
fx: 'scrollLeft',
pager: '#nav',
pagerAnchorBuilder: function(idx, slide) {
var imgurl = $(slide).children('div').children('a').children('img').attr('src');
return '<a href="' + imgurl + '" class="imgtip"></a>';
}
});
});
精彩评论