Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 32: | Line 32: | ||
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++){ | ||
Line 51: | Line 50: | ||
if(document.getElementById(splitted[1]) != null){ | if(document.getElementById(splitted[1]) != null){ | ||
array = document.getElementById(splitted[1]).getElementsByTagName('span'); | array = document.getElementById(splitted[1]).getElementsByTagName('span'); | ||
- | for (var | + | for (var j = 0; j < array.length; j++){ |
- | array[ | + | array[j].style.display="inline"; |
} | } | ||
} | } |
Revision as of 11:04, 4 July 2011