Template:INSA-Lyon/menuA
From 2011.igem.org
(Difference between revisions)
Line 67: | Line 67: | ||
</style> | </style> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | function afficheMenu(obj){ | ||
+ | |||
+ | var idMenu = obj.id; | ||
+ | var idSousMenu = 'sous' + idMenu; | ||
+ | var sousMenu = document.getElementById(idSousMenu); | ||
+ | |||
+ | /*****************************************************/ | ||
+ | /** si le sous-menu correspondant au menu cliqué **/ | ||
+ | /** est caché alors on l'affiche, sinon on le cache **/ | ||
+ | /*****************************************************/ | ||
+ | if(sousMenu.style.display == "none"){ | ||
+ | sousMenu.style.display = "block"; | ||
+ | } | ||
+ | else{ | ||
+ | sousMenu.style.display = "none"; | ||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | |||
+ | </script> | ||
+ | |||
<div id="menu"> | <div id="menu"> |
Revision as of 13:49, 9 May 2011