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 menuBar = document.getElementById("glossymenu"); | ||
+ | var aNodes = menuBar.getElementsByTagName("a"); | ||
+ | for (var i = 0; i < aNodes.length; i++) | ||
+ | { | ||
+ | if(aNodes[i].attributes.getNamedItem("href").value == document.URL) | ||
+ | { | ||
+ | aNodes[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 |
Revision as of 07:45, 18 October 2009