jQUery Cycle Plugin - Advanced Pager


/ Published in: jQuery
Save to your folder(s)

Version differs slightly from the demo, as the src for the thumbnail image is a child of the demo example, so has been slightly modified.


Copy this code and paste it in your HTML
  1. $('.ukn-visual-gridsnapr-widget').before('<ul class="ukn-visual-gridsnapr-widget-nav">').cycle({
  2. fx: 'turnDown',
  3. speed: 'fast',
  4. timeout: 0,
  5. pager: '.ukn-visual-gridsnapr-widget-nav',
  6. // callback fn that creates a thumbnail to use as pager anchor
  7. pagerAnchorBuilder: function(idx, slide){
  8. var src = $('img', slide).attr('src');
  9. return '<li><a href="#"><img src="' + src + '" width="60" height="60" /></a></li>';
  10. }
  11. });

URL: http://malsup.com/jquery/cycle/pager2.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.