Created
February 2, 2010 22:54
-
-
Save aaronmcadam/293141 to your computer and use it in GitHub Desktop.
jQuery cycle plugin example with pause and resume controls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="/site_assets/js/cycle.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
$("#featured_slideshow").hover( | |
function() { $("#slides").cycle("pause"); $("#controls").stop().fadeTo("normal", 1); }, | |
function() { $("#slides").cycle("resume"); $("#controls").stop().fadeTo("normal", 0); } | |
); | |
$("#slides").cycle({ | |
fx: "fade", | |
speed: "slow", | |
timeout: 6000, | |
next: "#next", | |
prev: "#prev" | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jQuery cycle plugin example with pause and resume controls