Team:Paris Bettencourt/Menu

From 2013.igem.org

(Difference between revisions)
Line 216: Line 216:
<script type="text/javascript">
<script type="text/javascript">
   function changemenu(){
   function changemenu(){
-
     var men = document.getElementsByClassName('left-menu');
+
     $('.left-menu').show();
-
    for (var i = 0; i < men.length; ++i) {
+
-
      var div = men[i]; 
+
-
      if (div.style.display == 'none') {
+
-
        div.style.display = 'block';
+
-
      }else{
+
-
        div.style.display = 'else';
+
-
      }
+
-
    }
+
   }
   }
</script>
</script>
Line 310: Line 302:
     </div>
     </div>
   <div id="onofflogo">
   <div id="onofflogo">
-
     <a onclick="changemenu()" title="iGEM wiki buttons">
+
     <a onclick='changemenu()" title="iGEM wiki buttons">
       <img src="https://static.igem.org/mediawiki/2013/7/72/PB_LogoOff.gif" height="20px">
       <img src="https://static.igem.org/mediawiki/2013/7/72/PB_LogoOff.gif" height="20px">
     </a>
     </a>

Revision as of 20:15, 15 September 2013