Skip to content

Instantly share code, notes, and snippets.

@timcheadle
Created June 3, 2011 14:15
Show Gist options
  • Save timcheadle/1006401 to your computer and use it in GitHub Desktop.
Save timcheadle/1006401 to your computer and use it in GitHub Desktop.
Nivo Slider Image Advance on Click
.slider {
cursor: pointer;
}
.nivo-directionNav a {
position:absolute;
top:45%;
z-index:9;
cursor:pointer;
display: none;
}
// Works with one or multiple sliders
$(window).load(function() {
$('.slider').nivoSlider({
effect: 'fade',
manualAdvance: true,
animSpeed: 150,
captionOpacity: 0.8,
slices: 1,
});
});
$('.nivoSlider').live('click', function() {
$('.nivo-nextNav', this).trigger('click');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment