Template:Template ZJU-China 2010

From 2010.igem.org

(Difference between revisions)
Line 136: Line 136:
}
}
-
#menubar0 a{
+
a.aa {
color:#7E77DD;
color:#7E77DD;
}
}
-
#menubar0 a:hover{
+
a.aa:hover{
color:#FFF;
color:#FFF;
}
}
 +
a.bb {
 +
color:#FFF;
 +
}
 +
 +
a.bb:hover{
 +
color:#FFF;
 +
}
/*#menubar0 h6 a{
/*#menubar0 h6 a{
font-size:20px;
font-size:20px;
Line 290: Line 297:
color:#FFF;
color:#FFF;
}
}
 +
 +
#id1 {}
 +
#id2 {}
 +
#id3 {}
 +
#id4 {}
 +
#id5 {}
 +
#menubox{
#menubox{
Line 321: Line 335:
<script language="javascript">
<script language="javascript">
-
function showDiv(divid, menuid){
+
function showDiv(divid, menuid, idid){
document.getElementById('sheet1').style.display = "none";  
document.getElementById('sheet1').style.display = "none";  
document.getElementById('menubar1').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
document.getElementById('menubar1').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
document.getElementById("id1").className="aa";
document.getElementById('sheet2').style.display = "none";
document.getElementById('sheet2').style.display = "none";
document.getElementById('menubar2').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
document.getElementById('menubar2').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
document.getElementById("id2").className="aa";
document.getElementById('sheet3').style.display = "none";
document.getElementById('sheet3').style.display = "none";
document.getElementById('menubar3').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
document.getElementById('menubar3').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
document.getElementById("id3").className="aa";
document.getElementById('sheet4').style.display = "none";
document.getElementById('sheet4').style.display = "none";
document.getElementById('menubar4').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
document.getElementById('menubar4').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
document.getElementById("id4").className="aa";
document.getElementById('sheet5').style.display = "none";
document.getElementById('sheet5').style.display = "none";
document.getElementById('menubar5').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
document.getElementById('menubar5').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
document.getElementById("id5").className="aa";
document.getElementById(divid).style.display = "block";
document.getElementById(divid).style.display = "block";
document.getElementById(menuid).style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/a/a7/Zjuigem_myupdate_03.jpg)";
document.getElementById(menuid).style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/a/a7/Zjuigem_myupdate_03.jpg)";
 +
document.getElementById(idid).className="bb";
}
}
Line 341: Line 361:
document.getElementById('sheet1').style.display = "none";
document.getElementById('sheet1').style.display = "none";
document.getElementById('menubar1').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/a/a7/Zjuigem_myupdate_03.jpg)";
document.getElementById('menubar1').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/a/a7/Zjuigem_myupdate_03.jpg)";
 +
document.getElementById("id1").className="bb";
document.getElementById('sheet2').style.display = "none";
document.getElementById('sheet2').style.display = "none";
document.getElementById('menubar2').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
document.getElementById('menubar2').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
document.getElementById("id2").className="aa";
document.getElementById('sheet3').style.display = "none";
document.getElementById('sheet3').style.display = "none";
document.getElementById('menubar3').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
document.getElementById('menubar3').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
document.getElementById("id3").className="aa";
document.getElementById('sheet4').style.display = "none";
document.getElementById('sheet4').style.display = "none";
document.getElementById('menubar4').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
document.getElementById('menubar4').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
document.getElementById("id4").className="aa";
document.getElementById('sheet5').style.display = "none";
document.getElementById('sheet5').style.display = "none";
document.getElementById('menubar5').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
document.getElementById('menubar5').style.backgroundImage = "url(https://static.igem.org/mediawiki/2010/1/18/Zjuigem_119.jpg)";
 +
document.getElementById("id5").className="aa";
}
}
Line 374: Line 399:
     <div id="menubar0">
     <div id="menubar0">
             <div id="menubar1">
             <div id="menubar1">
-
             <a href="https://2010.igem.org/Team:ZJU-China" title="Home" onMouseOver="showDiv1()"><b>Home</b></a>
+
             <a id="id1" class="aa" href="https://2010.igem.org/Team:ZJU-China" title="Home" onMouseOver="showDiv1()"><b>Home</b></a>
                 <div id="sheet1">
                 <div id="sheet1">
                     </div>
                     </div>
             </div>
             </div>
             <div id="menubar2">
             <div id="menubar2">
-
               <a href="https://2010.igem.org/Team:ZJU-China/ZJUprojects" title="Projects" onMouseOver="showDiv('sheet2', 'menubar2')">Projects</a>
+
               <a id="id2" class="aa" href="https://2010.igem.org/Team:ZJU-China/ZJUprojects" title="Projects" onMouseOver="showDiv('sheet2', 'menubar2', 'id2')"><b>Projects</b></a>
                     <div id="sheet2">
                     <div id="sheet2">
Line 395: Line 420:
             <div id="menubar3">
             <div id="menubar3">
-
               <a href="https://2010.igem.org/Team:ZJU-China/ZJUactivities" title="Acitivies" onMouseOver="showDiv('sheet3', 'menubar3')">Activities</a>
+
               <a id="id3" class="aa" href="https://2010.igem.org/Team:ZJU-China/ZJUactivities" title="Acitivies" onMouseOver="showDiv('sheet3', 'menubar3', 'id3')"><b>Activities</b></a>
                     <div id="sheet3">
                     <div id="sheet3">
Line 409: Line 434:
             <div id="menubar4">
             <div id="menubar4">
-
               <h6><a href="https://2010.igem.org/Team:ZJU-China/ZJUteam" title="Team" onMouseOver="showDiv('sheet4', 'menubar4')">Team</a></h6>
+
               <a id="id4" class="aa" href="https://2010.igem.org/Team:ZJU-China/ZJUteam" title="Team" onMouseOver="showDiv('sheet4', 'menubar4', 'id4')"><b>Team</b></a></h6>
                     <div id="sheet4">
                     <div id="sheet4">
Line 422: Line 447:
    
    
             <div id="menubar5">
             <div id="menubar5">
-
               <a href="https://2010.igem.org/Team:ZJU-China/ZJUsponsors" title="Sponsors" onMouseOver="showDiv('sheet5', 'menubar5')">Sponsors</a>
+
               <a id="id5" class="aa" href="https://2010.igem.org/Team:ZJU-China/ZJUsponsors" title="Sponsors" onMouseOver="showDiv('sheet5', 'menubar5', 'id5')"><b>Sponsors</b></a>
                  
                  
                     <div id="sheet5">
                     <div id="sheet5">

Revision as of 02:37, 25 October 2010