Template:INSA-Lyon/menuA

From 2011.igem.org

(Difference between revisions)
 
(209 intermediate revisions not shown)
Line 3: Line 3:
<style type="text/css">
<style type="text/css">
-
#navigation {  
+
#menu {  
-
     width: 200px ;  
+
     width: 170px ; /*220*/
-
     list-style: none ;  
+
     background:white;
-
    margin: 0 ;
+
    }
-
    padding: 0 ;
+
-
    }
+
-
#navigation li {  
+
#menu ul {
-
     background: #000080 ;  
+
    padding: 0;
-
     color: #fff ;  
+
    width: 150px;
-
     border: 1px solid #600 ;  
+
    border:0px solid;
-
     margin-bottom: 2px ;  
+
    margin:0px;
 +
    }
 +
 
 +
#menu ul li {  
 +
     background: #008000 ;  
 +
     color:#008000  ;  
 +
    position:relative;
 +
    list-style: none; /*on enleve les icones de liste*/
 +
    width: 150; /*200*/
 +
     border-bottom: 10px solid;  
 +
     border-top : 10px solid ;
 +
    border-left : 10px solid;
 +
    border-color : #008000;
     }
     }
-
#navigation li a {  
+
 
-
     display: block ;  
+
 
-
     background: #000080 ;  
+
#menu ul ul {  
-
     color: #fff ;  
+
     position: relative;  
-
     font: 1em "Trebuchet MS",Arial,sans-serif ;  
+
    top: 0;
-
     line-height: 1em ;  
+
    left: 0px; /* correspond au décalage a droite*/
 +
    display : none
 +
    }
 +
 
 +
#menu ul ul li {
 +
     background: #32CD32;  
 +
     position:relative;  
 +
     list-style: none; /*on enleve les icones de liste */
 +
    border-top: 1px solid;
 +
     border-bottom:1px solid;  
     text-align: center ;  
     text-align: center ;  
 +
    }
 +
 +
#menu li a {
     text-decoration: none ;  
     text-decoration: none ;  
-
     padding: 4px 0 ;  
+
     color : white;
 +
    font-family : Times;
 +
    font-weight :bold;
 +
    font-size : large;
 +
    }
 +
 
 +
#menu li.sousmenu {
 +
    background: #008000 ;
 +
    }
 +
 
 +
 
 +
#menu li:hover {
 +
    background:#90EE90;
     }
     }
</style>
</style>
-
<ul class="menu">
+
 
-
    <li><a href="#" title="go to home">Home</a></li>
+
 
-
             
+
<script type="text/javascript">
-
    <li><a href="#" title="go to about us">About us</a></li>
+
 
-
        <ul class="sous-menu">
+
window.onload = montre('submenu0');
-
          <li><a href="#" title="go to students">Students</a></li>
+
var opened = false;
-
          <li><a href="#" title="go to discover Lyon">Discover Lyon</a><li>
+
-
        </ul>
+
-
    <li><a href="#" title="go to project">Project</a></li>
+
-
    <li><a href="#" title="go to parts">Parts</a></li>
+
-
    <li><a href="#" title="go to sponsors">Sponsors</a></li>
+
   
   
-
   
+
function montre(id) {
-
</ul>
+
  document.getElementById('submenu0').style.display='none';
 +
  var d = document.getElementById(id);
 +
  if (d) {
 +
      if(opened == d) {
 +
        opened = false;
 +
        d.style.display='none';
 +
      } else {
 +
        opened = d;
 +
        d.style.display='block';
 +
      }
 +
  }
 +
}
 +
</script>
 +
 +
<div id="menu">
 +
  <ul class="niveau1">
 +
 +
    <li><a href="/Team:Lyon-INSA-ENS" title="go to home">Home</a></li>
 +
<ul id="submenu0" style='display:none;'>
 +
  </ul>
 +
 +
    <li> <a class="sousmenu" onclick="javascript:montre('submenu1');">  About us</a>
 +
        <ul id="submenu1" style='display:none;'>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Team/Students" title="go to team">Team</a></li>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Team/Insa" title="go to INSA">INSA</a></li>
 +
          <!-- <li><a href="/Team:Lyon-INSA-ENS/Team/ENS" title="go to students">ENS</a></li>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Team/Lyon" title="go to discover Lyon">Discover Lyon</a></li>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Team/Gallery" title="go to students">Gallery</a></li> -->
 +
        </ul>
 +
    </li>
 +
    <li> <a class="sousmenu" onclick="javascript:montre('submenu2');"> Project</a>
 +
        <ul id="submenu2" style='display:none;'>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Project/Introduction" title="go to Introduction">Introduction</a></li>
 +
      <!--    <li><a href="/Team:Lyon-INSA-ENS/Project/Issue" title="go to Issue">Issue</a></li>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Project/Human practices" title="go to Human practices">Human practice</a>      </li>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Project/Reglementary" title="go to Reglementary Aspects">Reglementary Aspects</a></li> -->
 +
        </ul>
 +
    </li>
 +
         
 +
    <!--  <li> <a class="sousmenu" onclick="javascript:montre('submenu3');"> Realization</a>
 +
        <ul id="submenu3" style='display:none;'>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Realisation/Experiment" title="go to experiment plan">Experiments schedule</a></li>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Realisation/Parts" title="go to Parts">Parts</a></li>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Realisation/Notebook" title="go to Notebook">Notebook</a></li>
 +
        </ul>
 +
    </li>-->
 +
 +
 +
    <li><a class="sousmenu" onclick="javascript:montre('submenu4');">Communication</a>
 +
        <ul id="submenu4" style='display:none;'>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Communication/Conferences" title="go to conferences">Conferences</a></li>
 +
          <li><a href="/Team:Lyon-INSA-ENS/Communication/Events" title="go to events">Events</a></li>
 +
        </ul>
 +
    </li>
 +
 +
    <li><a href="/Team:Lyon-INSA-ENS/Sponsors" title="go to sponsors">Sponsors</a></li>
 +
    <li><a href="/Team:Lyon-INSA-ENS/Contact">Contact us</a></li>
 +
</ul>
 +
</div>
</html>
</html>

Latest revision as of 09:37, 4 July 2011