//-Fonction d'ajout d'entrées principales-------------------------
function DynamicMenu_addParent(strName) {
var strID = 'ID' + intCount++;
var strTemp = '<DIV ID="' + strID + '" CLASS="parent" ';
strTemp += ' onClick="expandCollapse(this);">';
strTemp += '<IMG SRC="../../images/menuderoulant.gif" Height="12">';
strTemp += ' <a href="return false;" >'+ strName +'</a>'; // cette ligne ne fait pas ce que je veux
strTemp += '<DIV STYLE="display: none" CLASS="child"><br><table width="60%" border="0"><tr><td colspan=3></td></tr><tr align="center"><TH width="35%">Nom</TH> <TH width="35%">Prénom</TH> <TH width="30%">Actions</TH></tr></DIV>';
strTemp += '</DIV>';
this.div.innerHTML += strTemp;
this.currentChild = document.getElementById(strID);
} |