Template:INSA-Lyon/menuA
From 2011.igem.org
(Difference between revisions)
Line 65: | Line 65: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | |||
+ | window.onload = montre('submenu1'); | ||
+ | var opened = false; | ||
+ | |||
+ | function montre(id) { | ||
+ | |||
+ | document.getElementById('submenu1').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'; | ||
+ | |||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
function afficheMenu(obj){ | function afficheMenu(obj){ | ||
Line 89: | Line 119: | ||
<li><a href="/Team:Lyon-INSA-ENS" title="go to home">Home</a></li> | <li><a href="/Team:Lyon-INSA-ENS" title="go to home">Home</a></li> | ||
- | <li class="sousmenu | + | <li class="sousmenu" onclick="javascript:montre('submenu1');return false;"><a href="/Team:Lyon-INSA-ENS/Team" title="go to about us">About us</a> |
- | <ul | + | <ul id="submenu1"> |
- | <li | + | <li><a href="/Team:Lyon-INSA-ENS/Team/Students" title="go to students">Students & Supervisors</a></li> |
- | <li | + | <li><a href="/Team:Lyon-INSA-ENS/Team/Insa" title="go to students">The INSA</a></li> |
- | <li | + | <li><a href="/Team:Lyon-INSA-ENS/Team/ENS" title="go to students">The ENS</a></li> |
- | <li | + | <li><a href="/Team:Lyon-INSA-ENS/Team/Lyon" title="go to discover Lyon">Discover Lyon</a></li> |
- | <li | + | <li><a href="/Team:Lyon-INSA-ENS/Team/Gallery" title="go to students">Gallery</a></li> |
</ul> | </ul> | ||
</li> | </li> |
Revision as of 14:29, 9 May 2011