Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 35: | Line 35: | ||
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'){ | ||
document.getElementById(submenus[i]).style.display = "none"; | document.getElementById(submenus[i]).style.display = "none"; | ||
Line 41: | Line 40: | ||
else{ | else{ | ||
if( submenus[i] != elem ){ | if( submenus[i] != elem ){ | ||
+ | alert("fac none " + submenus[i]); | ||
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"; |
Revision as of 10:57, 4 July 2011