Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 22: | Line 22: | ||
function highlightMenuItem(id){ | function highlightMenuItem(id){ | ||
if(document.getElementById(id) != null){ | if(document.getElementById(id) != null){ | ||
- | document.getElementById(id).style.fontWeight=' | + | document.getElementById(id).style.fontWeight=''; |
array = document.getElementById(id).getElementsByTagName("span"); | array = document.getElementById(id).getElementsByTagName("span"); | ||
for (var i = 0; i < array.length; i++){ | for (var i = 0; i < array.length; i++){ | ||
array[i].style.display="inline"; | array[i].style.display="inline"; | ||
+ | array[i].style.fontWeight="bold"; | ||
} | } | ||
} | } | ||
Line 32: | Line 33: | ||
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++){ | ||
if (elem == 'none'){ | if (elem == 'none'){ |
Revision as of 15:08, 14 July 2011