Team:Yale/Templates/Yale Header Project

From 2010.igem.org

(Difference between revisions)
(Undo revision 123239 by Dzhu (Talk))
Line 210: Line 210:
<script type="text/javascript">  
<script type="text/javascript">  
-
function switchMenu(a){
+
function switchMenu(obj) {  
-
   var e=document.getElementById(a);
+
   var el = document.getElementById(obj);  
-
   if(!e)return true;
+
   if ( el.style.display != "none" ) {  
-
  if(e.style.display=="none"){
+
     el.style.display = 'none';
-
     e.style.display="block"
+
   }  
-
   } else {
+
  else {  
-
     e.style.display="none"
+
     el.style.display = 'block';
-
   }
+
   }  
-
   return true;
+
}
-
}
+
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

iGEM Yale