Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 18: | Line 18: | ||
//else { // we are on a main menu item | //else { // we are on a main menu item | ||
var id = 'sub-'+ url; | var id = 'sub-'+ url; | ||
- | |||
hideSubmenu(id); | hideSubmenu(id); | ||
- | + | highlightMenuItem(id); | |
//} | //} | ||
} | } | ||
function highlightMenuItem(id){ | function highlightMenuItem(id){ | ||
- | |||
array = document.getElementById(id).getElementsByTagName('a'); | array = document.getElementById(id).getElementsByTagName('a'); | ||
for (var i = 0; i < array.length; i++){ | for (var i = 0; i < array.length; i++){ | ||
Line 52: | Line 50: | ||
window.onload = function() { | window.onload = function() { | ||
- | |||
windowLoadMenu(); | windowLoadMenu(); | ||
document.getElementById( "contentSub" ).style.display="none"; | document.getElementById( "contentSub" ).style.display="none"; |
Revision as of 17:31, 3 July 2011