Skip to content

Instantly share code, notes, and snippets.

@joemsak
Created March 15, 2010 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemsak/332868 to your computer and use it in GitHub Desktop.
Save joemsak/332868 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
$('#cycle_area').cycle({
fx: 'scrollHorz',
speed: 500,
timeout: 5500,
pager: '#pager',
pagerAnchorBuilder: buildThumbnails,
easing: 'easeInOutCubic',
pause: true
});
});
function buildThumbnails(i, elem){
src = $(elem).find('img').attr('src');
title = $(elem).find('h2').text();
html = '<a href="#" title="' + title + '"><img src="' + src + '" width="50" height="50" alt="'+ title +'" /></a>';
return html
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment