Template:Template ZJU-China 2010

From 2010.igem.org

(Difference between revisions)
Line 438: Line 438:
}
}
 +
slide = 1;
-
</script>
+
function switchbackground(){
 +
if (slide == 1){
 +
document.getElementById("header").style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
slide++;
 +
}
 +
else if (slide == 2){
 +
document.getElementById("header").style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
slide++;
 +
}
 +
else if (slide == 3){
 +
document.getElementById("header").style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
slide++;
 +
}
 +
else if (slide == 4){
 +
document.getElementById("header").style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
slide++;
 +
}
 +
else if (slide == 5){
 +
document.getElementById("header").style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
slide++;
 +
}
 +
else if (slide == 6){
 +
document.getElementById("header").style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
slide++;
 +
}
 +
else if (slide == 7){
 +
document.getElementById("header").style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
slide = 1;
 +
}
 +
setTimeout('switchbackground()', 5000);
 +
}
 +
</script>
 +
<script language="javascript">switchbackground()</script>
     <div id="header">
     <div id="header">
     <img src="https://static.igem.org/mediawiki/2010/b/bf/Zjunewlogo1.png" title="Zhejiang University, China"></img>
     <img src="https://static.igem.org/mediawiki/2010/b/bf/Zjunewlogo1.png" title="Zhejiang University, China"></img>

Revision as of 19:45, 27 October 2010