Skip to content

Instantly share code, notes, and snippets.

@quoidautre
Created April 5, 2012 07:07
Show Gist options
  • Save quoidautre/2308678 to your computer and use it in GitHub Desktop.
Save quoidautre/2308678 to your computer and use it in GitHub Desktop.
JS: SetInterval() with parameter(s)
if ($('.wrapper-slider-home').is('*')) {
setInterval( function() { slideSwitch(".wrapper-slider-home");}, 2000 );
};
function slideSwitch(wrapper) {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment