开发者

Does jquery cycle plugin work with livequery?

开发者 https://www.devze.com 2022-12-30 13:06 出处:网络
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)

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

精彩评论

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

关注公众号