Skip to content

Instantly share code, notes, and snippets.

@mikekelly
Created March 18, 2011 15:52
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 mikekelly/876314 to your computer and use it in GitHub Desktop.
Save mikekelly/876314 to your computer and use it in GitHub Desktop.
$(document).ready(function () {
$('#gco_slider_01').cycle({
fx: 'scrollHorz',
speed: 450,
timeout: 0,
after: function (curr, next, opts) {
var index = opts.currSlide;
$('#gco_slider_01_prev')[index == 0 ? 'hide' : 'show']();
$('#gco_slider_01_next')[index == opts.slideCount - 1 ? 'hide' : 'show']();
var caption = 'Image ' + (opts.currSlide + 1) + ' of ' + opts.slideCount;
$('#gco_counter_01').html(caption);
},
prev: '#gco_slider_01_prev',
next: '#gco_slider_01_next',
pagerAnchorBuilder: function (idx, slide) {
return '<a href="#"></a>';
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment