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++)
 
-
{
 
-
//alert(aNodes[i].attributes.getNamedItem("href").value + "\n" + document.URL);
 
-
if(aNodes[i].attributes.getNamedItem("href").value == document.URL)
 
-
{
 
-
alert("!!!");
 
-
}
 
-
}
 
},
},
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 10:38, 17 October 2009