Template:INSA-Lyon/menuA

From 2011.igem.org

Revision as of 13:33, 9 May 2011 by July (Talk | contribs)

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"; }

}