views:

69

answers:

0

I use this code and it's working fine on main page, but it doesn't work when you get new content through 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>'; 
                  } 
      });
});