Team:Yale/Templates/Yale Header Project
From 2010.igem.org
(Difference between revisions)
Line 210: | Line 210: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | function switchMenu( | + | function switchMenu(obj) { |
- | var | + | var el = document.getElementById(obj); |
- | if( | + | if ( el.style.display != "none" ) { |
- | + | el.style.display = 'none'; | |
- | + | } | |
- | } else { | + | else { |
- | + | el.style.display = 'block'; | |
- | } | + | } |
- | + | } | |
- | } | + | function hide() { |
+ | document.getElementById("toggle").style.display='none'; | ||
+ | } | ||
</script> | </script> | ||
+ | <body onload="hide();"> | ||
<!------------ End Javascript -----------------> | <!------------ End Javascript -----------------> |
Revision as of 05:34, 23 October 2010