Team:USP-UNESP-Brazil/Templates/Header
From 2012.igem.org
(Difference between revisions)
Line 54: | Line 54: | ||
//count number of items | //count number of items | ||
- | var numberOfItems = $("images").length; | + | var numberOfItems = $(".images").length; |
//set current item | //set current item | ||
Line 60: | Line 60: | ||
//show first item | //show first item | ||
- | $('. | + | $('.images').eq(currentItem).fadeIn(initialFadeIn); |
//loop through the items | //loop through the items | ||
var infiniteLoop = setInterval(function(){ | var infiniteLoop = setInterval(function(){ | ||
- | $('. | + | $('.images').eq(currentItem).fadeOut(fadeTime); |
if(currentItem == numberOfItems -1){ | if(currentItem == numberOfItems -1){ |
Revision as of 02:22, 24 September 2012
Network