Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
Line 20: | Line 20: | ||
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 28: | Line 27: | ||
else{ | else{ | ||
if( submenus[i] != elem ){ | if( submenus[i] != elem ){ | ||
+ | |||
+ | alert('diferit de: '+submenus[i]); | ||
document.getElementById(submenus[i]).style.display = "none"; | 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{ | ||
+ | |||
+ | alert('am gasit: '+submenus[i]); | ||
document.getElementById(submenus[i]).style.display = "block"; | document.getElementById(submenus[i]).style.display = "block"; | ||
// document.getElementById(id).getElementsByTagName('span').style.display='block'; | // document.getElementById(id).getElementsByTagName('span').style.display='block'; |
Revision as of 18:10, 3 July 2011