Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 36: | Line 36: | ||
function hideSubmenu( elem ){ | function hideSubmenu( elem ){ | ||
- | + | alert("hide"+id); | |
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 46: | Line 46: | ||
if (document.getElementById(submenus[i]) != null){ | if (document.getElementById(submenus[i]) != null){ | ||
document.getElementById(submenus[i]).style.display = "none"; | document.getElementById(submenus[i]).style.display = "none"; | ||
- | |||
} | } | ||
}else{ | }else{ | ||
document.getElementById(submenus[i]).style.display = "block"; | document.getElementById(submenus[i]).style.display = "block"; | ||
- | document.getElementById( | + | document.getElementById(submenus[i]).getElementsByTagName('span').style.display='block'; |
} | } | ||
} | } |
Revision as of 08:31, 4 July 2011