开发者

Does jquery cycle plugin work with livequery?

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>'; 
                  } 
      });
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜