Bonjour,
J'ai trouvé un super menu en javascript sur votre site, mais je voudrais lorsque l'utilisateur ouvre plusieurs rubrique et qu'il clic sur un lien du menu que celui-ci puisse rester ouvert lors du chargement de la nouvelle page ????
Je vous montre un exemple
<script type="text/javascript" src="../../script/show-hide.js"></script>
<SCRIPT LANGUAGE=javascript>
var intCount = 0;
//-Fonction d'ajout d'entrées principales-------------------------
function DynamicMenu_addParent(strName) {
var strID = 'P_' + strName;
var strTemp = '<DIV ID="' + strID + '" CLASS="parent"';
strTemp += ' onClick="expandCollapse(this);">';
strTemp += '<IMG SRC="left.gif" Height="12">';
strTemp += ' ' + strName;
strTemp += '<DIV STYLE="display: none" CLASS="child"></DIV>';
strTemp += '</DIV>';
this.div.innerHTML += strTemp;
this.currentChild = document.getElementById(strID);
}
//-Fonction d'ajout des sous entrées principales-------------------------
function DynamicMenu_addSousParent(strName) {
var strID = 'S_' + strName;
var strTemp = '<DIV ID="' + strID + '" CLASS="parent"';
strTemp += ' onClick="expandCollapse(this);">';
strTemp += '<IMG SRC="left.gif" Height="12">';
strTemp += ' ' + strName;
strTemp += '<DIV STYLE="display: none" CLASS="child"></DIV>';
strTemp += '</DIV>';
if (document.all) {
this.currentChild.children[1].innerHTML += strTemp;
} else {
this.currentChild.childNodes[2].innerHTML += strTemp;
}
this.currentChild = document.getElementById(strID);
}
//-Fonction d'ajout de liens dans le menu-------------------------
function DynamicMenu_addChild(strName,strURL) {
var strTemp = '<A HREF="' + strURL + '"' + 'CLASS="child"'
+ ' onClick="cancelBubble(arguments[0];">'
+ strName + '</A><BR>';
if (document.all) {
this.currentChild.children[1].innerHTML += strTemp;
} else {
this.currentChild.childNodes[2].innerHTML += strTemp;
}
}
//-inhibe la cascade d'évènements au DIV conteneur----------------
function cancelBubble(netEvent) {
if (document.all) {
window.event.cancelBubble = true;
} else {
netEvent.cancelBubble = true;
}
}
function reporter(){
var choix = new DynamicMenu("Menu 1");
window.opener.document.all = choix;
alert (choix);
}
//-Contracte ou expanse le menu-----------------------------------
function expandCollapse(objElement) {
var strId = objElement.id;
if (intCount == 0) {
if (document.all) {
var imgIcon = objElement.children[0];
objElement = objElement.children[1];
} else {
var imgIcon = objElement.childNodes[0];
objElement = objElement.childNodes[2];
}
if (objElement.style.display == "none") {
objElement.style.display = "block" ;
imgIcon.src = "bottom.gif" ;
} else {
objElement.style.display = "none" ;
imgIcon.src = "left.gif" ;
}
}
if (strId.substring(0,1) == 'S') {
intCount = 1;
}
if (strId.substring(0,1) == 'P' && intCount == 1) {
intCount = 0;
}
}
//-Fonction de création de menu dynamique-------------------------
function DynamicMenu(strName) {
//var id = "Menu" + intCount++;
var id = strName;
document.write('<DIV Id="' + id + '"></DIV>');
this.div = document.getElementById(id);
this.currentChild = null;
this.addParent = DynamicMenu_addParent;
this.addSousParent = DynamicMenu_addSousParent;
this.addChild = DynamicMenu_addChild;
}
</SCRIPT>
</head>
<body>
<table width="190" cellpadding="0" cellspacing="0">
<tr>
<td><script language="Javascript">
var menu = new DynamicMenu("Menu1");
menu.addParent("Orchestre","");
menu.addChild("Historique","../orchestre/historique.html");
menu.addChild("Direction Musicale","page1.html");
menu.addChild("Encadrement","page1.html");
menu.addChild("Musiciens","page1.html");
menu.addParent("Concerts","");
menu.addChild("Calendrier général","../concert/calendrier.html");
menu.addChild("Saison symphonique","page1.html");
menu.addChild("Matinée musicales","page2.html");
menu.addChild("Musique de chambre","page2.html");
menu.addChild("Musique contemporaine","page2.html");
menu.addChild("Campus en musique","page2.html");
menu.addChild("Concert scolaires","page2.html");
menu.addChild("Festival et Tournée","");
</body></script>
</td>
</tr>
</table>
Merci pour celui qui pourra m'aider car je ne manipule pas encore très bien le javascript 

ces