Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 19: | Line 19: | ||
var id = 'sub-'+ url; | var id = 'sub-'+ url; | ||
hideSubmenu(id); | hideSubmenu(id); | ||
- | highlightMenuItem(url); | + | highlightMenuItem(document.getElementById(url)); |
//} | //} | ||
} | } | ||
function highlightMenuItem(id){ | function highlightMenuItem(id){ | ||
- | alert ('highlight' | + | alert ('highlight'); |
- | + | id.style.fontWeight = "bold"; | |
} | } | ||
function hideSubmenu( elem ){ | function hideSubmenu( elem ){ | ||
+ | highlightMenuItem(elem); | ||
var submenus= ['sub-team','sub-project', 'sub-home', 'sub-gallery', 'sub-sponsors']; | var submenus= ['sub-team','sub-project', 'sub-home', 'sub-gallery', 'sub-sponsors']; | ||
for( var i=0; i<submenus.length; i++){ | for( var i=0; i<submenus.length; i++){ |
Revision as of 17:41, 3 July 2011