Copiez le code comme suit :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<tête>
<meta http-equiv=content-type content="text/html; charset=utf-8" />
<link href="css/admin.css" type="text/css" rel="stylesheet" />
<langage de script=javascript>
la fonction expand(el)//passe l'identifiant, 1,2,3 sont utilisés pour distinguer la catégorie à laquelle il appartient
{
childobj = document.getElementById("child" + el);//child1,child2....
if (childobj.style.display == 'none')//Si cet élément n'est aucun, il ne sera pas affiché
{
childobj.style.display = 'block';//S'il s'agit d'un bloc. sera affiché comme un élément de niveau bloc
}
autre
{
childobj.style.display = 'none';//Lorsque vous cliquez à nouveau, il sera à nouveau masqué
}
retour;
}
</script>
</tête>
<corps>
<table cellpacing=0 cellpadding=0 largeur=170
background=./img/menu_bg.jpg border=0>
<tr>
<td valign=top align=middle>
<table cellpacing=0 cellpadding=0 border=0>
<tr>
<td hauteur=10></td>
</tr>
</table>
<table cellpacing=0 cellpadding=0 width=150 border=0>
<hauteur tr=22>
<td style="padding-left: 30px" background=./img/menu_bt.jpg>
<a class=menuparent onclick=expand(1) href="javascript:void(0);">Gestion du personnel</a></td></tr>
<hauteur tr=4>
<td></td></tr></table>
<table id=child1 style="display : aucun" cellpacing=0 cellpadding=0
largeur=150 bordure=0>
<hauteur tr=20>
<td align=largeur moyenne=30><img hauteur=9
src="./img/menu_icon.gif" width=9></td>
<td><a class=menuenfant
href="memberadd.jsp"
target=right>Augmentation du personnel</a></td></tr>
<hauteur tr=20>
<td align=largeur moyenne=30><img hauteur=9
src="./img/menu_icon.gif" width=9></td>
<td><a class=menuenfant
href="#"
target=right>Modification du personnel</a></td></tr>
<hauteur tr=20>
<td align=largeur moyenne=30><img hauteur=9
src="./img/menu_icon.gif" width=9></td>
<td><a class=menuenfant
href="#"
target=right>Suppression du personnel</a></td></tr>
<hauteur tr=20>
<td align=largeur moyenne=30><img hauteur=9
src="./img/menu_icon.gif" width=9></td>
<td><a class=menuenfant
href="#"
target=right>Recherche de personnel</a></td></tr>
<hauteur tr=4>
<td colspan=2></td>
</tr>
</table>
</corps>
</html>