Template:INSA-Lyon/menuA
From 2011.igem.org
(Difference between revisions)
Line 72: | Line 72: | ||
function montre(id) { | function montre(id) { | ||
- | |||
document.getElementById('submenu1').style.display='none'; | document.getElementById('submenu1').style.display='none'; | ||
- | |||
var d = document.getElementById(id); | var d = document.getElementById(id); | ||
- | |||
if (d) { | if (d) { | ||
- | |||
if(opened == d) { | if(opened == d) { | ||
- | |||
opened = false; | opened = false; | ||
- | |||
d.style.display='none'; | d.style.display='none'; | ||
- | |||
} else { | } else { | ||
- | |||
opened = d; | opened = d; | ||
- | |||
d.style.display='block'; | d.style.display='block'; | ||
- | |||
} | } | ||
- | |||
} | } | ||
- | |||
} | } | ||
- | + | </script> | |
Revision as of 11:18, 10 May 2011