Template:Team:HKU-HKBU/header
From 2009.igem.org
(Difference between revisions)
Line 18: | Line 18: | ||
animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow" | animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow" | ||
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized | oninit:function(headers, expandedindices){ //custom code to run when headers have initalized | ||
- | var | + | var menuBar2 = document.getElementById("glossymenu2"); |
- | + | var aNodes = menuBar2.getElementsByTagName("a"); | |
- | var aNodes = | + | |
for (var i = 0; i < aNodes.length; i++) | for (var i = 0; i < aNodes.length; i++) | ||
{ | { | ||
Line 28: | Line 27: | ||
} | } | ||
} | } | ||
- | + | ||
+ | var menuBar3 = document.getElementById("glossymenu3"); | ||
+ | var aNodes1 = menuBar2.getElementsByTagName("a"); | ||
+ | for (var i = 0; i < aNodes1.length; i++) | ||
+ | { | ||
+ | if(aNodes1[i].attributes.getNamedItem("href").value == document.URL) | ||
+ | { | ||
+ | aNodes1[i].style.fontWeight = "bold"; | ||
+ | } | ||
+ | } | ||
}, | }, | ||
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed | onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed | ||
Line 45: | Line 53: | ||
</div> | </div> | ||
<div id="leftnav"> | <div id="leftnav"> | ||
- | <div class="glossymenu" id=" | + | <div class="glossymenu" id="glossymenu1"> |
<a class="menuitem" href="https://2009.igem.org/Team:HKU-HKBU">Home</a> | <a class="menuitem" href="https://2009.igem.org/Team:HKU-HKBU">Home</a> | ||
</div> | </div> | ||
- | <div class="glossymenu" id=" | + | <div class="glossymenu" id="glossymenu2"> |
<a class="menuitem" href="https://2009.igem.org/Team:HKU-HKBU/Project">Project</a> | <a class="menuitem" href="https://2009.igem.org/Team:HKU-HKBU/Project">Project</a> | ||
<a class="menuitem" href="https://2009.igem.org/Team:HKU-HKBU/Parts">Parts</a> | <a class="menuitem" href="https://2009.igem.org/Team:HKU-HKBU/Parts">Parts</a> | ||
Line 83: | Line 91: | ||
<a class="menuitem" href="https://2009.igem.org/Team:HKU-HKBU/Application" >Applications</a> | <a class="menuitem" href="https://2009.igem.org/Team:HKU-HKBU/Application" >Applications</a> | ||
</div> | </div> | ||
- | <div class="glossymenu" id=" | + | <div class="glossymenu" id="glossymenu3"> |
<a class="menuitem submenuheader" href="https://2009.igem.org/Team:HKU-HKBU/Human_Practice" >Human Practice</a> | <a class="menuitem submenuheader" href="https://2009.igem.org/Team:HKU-HKBU/Human_Practice" >Human Practice</a> | ||
<div class="submenu"> | <div class="submenu"> |
Revision as of 14:38, 21 October 2009