Template:Template ZJU-China 2010

From 2010.igem.org

(Difference between revisions)
Line 437: Line 437:
slide = 1;
slide = 1;
-
function switchbackground(){
+
function change(){
-
      function change(){
+
         var lipan = Math.random();  //产生0-1之间的随机数
         var lipan = Math.random();  //产生0-1之间的随机数
     lipan = lipan * 6;            //用随机数乘以10
     lipan = lipan * 6;            //用随机数乘以10
Line 453: Line 452:
     }
     }
     document.getElementById("header").style.backgroundImage = "URL("+lipath+")";  //显示对应的图片
     document.getElementById("header").style.backgroundImage = "URL("+lipath+")";  //显示对应的图片
-
    }
+
}
     setInterval("change()",1000);    //每1秒钟掉用一次change()
     setInterval("change()",1000);    //每1秒钟掉用一次change()
-
}
 
</script>
</script>
Line 466: Line 464:
         </div>
         </div>
         <div id="headright">
         <div id="headright">
-
         <img src="https://static.igem.org/mediawiki/2010/3/3d/Shishikan2.png" onmouseout="nereidFade(this,60,10,5)" onmouseover="nereidFade(this,100,10,5)" style="FILTER: alpha(opacity=50)" title="Zhejiang University, China"></img>
+
         <img src="https://static.igem.org/mediawiki/2010/3/3d/Shishikan2.png" onMouseOut="nereidFade(this,60,10,5)" onMouseOver="nereidFade(this,100,10,5)" style="FILTER: alpha(opacity=50)" title="Zhejiang University, China"></img>
         </div>
         </div>
         <!--
         <!--

Revision as of 20:26, 27 October 2010