Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 20: | Line 20: | ||
alert(id); | alert(id); | ||
hideSubmenu(id); | hideSubmenu(id); | ||
- | + | highlightMenuItem(url); | |
//} | //} | ||
} | } | ||
Line 26: | Line 26: | ||
function highlightMenuItem(id){ | function highlightMenuItem(id){ | ||
alert('highlight'); | alert('highlight'); | ||
- | + | document.getElementById(id).style.fontWeight='bold'; | |
- | + | ||
- | + | ||
} | } | ||
function hideSubmenu( elem ){ | function hideSubmenu( 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:59, 3 July 2011