Team:USP-UNESP-Brazil/Templates/Header

From 2012.igem.org

(Difference between revisions)
Line 29: Line 29:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript">
<script type="text/javascript">
-
 
-
$(document).ready(function(){
 
-
 
-
var $images = null;
 
-
images[0] = $("#imgIntroduction");
 
-
images[1] = $("#imgHackology");
 
-
images[2] = $("#imgPlugnPlay");
 
-
images[3] = $("#imgAssocMem");
 
$(window).load(function() { //start after HTML, images have loaded
$(window).load(function() { //start after HTML, images have loaded
Line 71: Line 63:
                    currentItem++;
                    currentItem++;
                }
                }
-
                $('.rotating-item').eq(currentItem).fadeIn(fadeTime);
+
                $('.images').eq(currentItem).fadeIn(fadeTime);
 
 
            }, itemInterval);
            }, itemInterval);

Revision as of 02:36, 24 September 2012