Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 28: | Line 28: | ||
else{ | else{ | ||
if( submenus[i] != elem ){ | if( submenus[i] != elem ){ | ||
- | document.getElementById(submenus[i]).style.display = "none"; | + | if (document.getElementById(submenus[i]) != null){ |
+ | document.getElementById(submenus[i]).style.display = "none"; | ||
// document.getElementById(id).getElementsByTagName('span').style.display='none'; | // document.getElementById(id).getElementsByTagName('span').style.display='none'; | ||
+ | } | ||
}else{ | }else{ | ||
document.getElementById(submenus[i]).style.display = "block"; | document.getElementById(submenus[i]).style.display = "block"; |
Revision as of 18:31, 3 July 2011