Template:Team:HKU-HKBU/header

From 2009.igem.org

(Difference between revisions)
Line 19: Line 19:
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 menuBar = document.getElementById("glossymenu");
-
  var aNodes  = menuBar.getElementsByTagName("a");
+
          for (var j = 0; j < menuBar.length; j++){
 +
  var aNodes  = menuBar[j].getElementsByTagName("a");
  for (var i = 0; i < aNodes.length; i++)
  for (var i = 0; i < aNodes.length; i++)
  {
  {
Line 27: Line 28:
    }
    }
  }
  }
 +
        }
},
},
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 14:31, 21 October 2009