Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 18: | Line 18: | ||
} | } | ||
var id = 'sub-'+ url; | var id = 'sub-'+ url; | ||
- | alert("aici"+id); | + | alert("aici "+id); |
hideSubmenu(id); | hideSubmenu(id); | ||
alert("gata1"); | alert("gata1"); | ||
Line 48: | Line 48: | ||
} | } | ||
}else{ | }else{ | ||
- | document.getElementById(submenus[i]).style.display = "block"; | + | if(document.getElementById(submenus[i]) != null){ |
- | + | document.getElementById(submenus[i]).style.display = "block"; | |
+ | document.getElementById(submenus[i]).getElementsByTagName('span').style.display='block'; | ||
+ | } | ||
} | } | ||
} | } |
Revision as of 08:34, 4 July 2011