Skip to content

Instantly share code, notes, and snippets.

@JackDanger
Created September 1, 2010 21:43
Show Gist options
  • Select an option

  • Save JackDanger/561428 to your computer and use it in GitHub Desktop.

Select an option

Save JackDanger/561428 to your computer and use it in GitHub Desktop.
(function(){
var cloops = $(".rotating_cloop")
var shown = 0
var length = cloops.length
setInterval(function(){
shown++
if(shown >= length) shown = 0
$(cloops[shown-0]).hide();
$(cloops[shown]).show()
}, 2000)
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment