Merci. J'ai fait ce que tu as dit mais ça ne marche pas!
Voici mon code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stylemenu.css" rel="stylesheet" media="screen" type="text/css" />
<title>test</title>
<script type="text/javascript">
<!--
window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
for (var i = 1; i<=10; i++) {
if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
}
if (d) {d.style.display='block';}
}
//-->
</script>
<style type="text/css">
<!--
#menu {
font: 12px Arial, Helvetica, sans-serif;
position: absolute;
display: inline;
top: 58px;
left: 161px;
z-index:100;
/*width: 100%; /*précision pour Opera */
width: 70em;
}
#menu dl {
/*position: absolute;*/
float: left;
width: 168px;
}
#menu dt {
cursor: pointer;
text-align: center;
font-weight: normal;
background: #d6e0ee;
border: 1px solid gray;
margin: 1px;
line-height: 17px;
}
#menu dd {
display: none;
border: 1px solid gray;
line-height: 17px;
}
#menu li {
font: 11px Arial, Helvetica, sans-serif;
text-align: center;
background: #fff;
line-height: 17px;
border-bottom: 1px solid lightgrey;
}
#menu li a, #menu dt a {
color: #000;
text-decoration: none;
display: block;
height: 100%;
border: 0 none;
}
#menu li a:hover, #menu dt a:hover {
background: #eee;
font-weight: bold;
color: #000000;
text-align:left;
}
-->
</style>
</head>
<body>
<div id="menu">
<dl>
<dt onmouseover="javascript:montre('smenu1');">Les analyses</dt>
<dd id="smenu1" onmouseover="javascript:montre('smenu1');" onmouseout="javascript:montre('');">
<ul>
<li><a href="a.htm">Dépistage</a></li>
<li><a href="b.htm">Ethylisme</a></li>
<li><a href="c.htm">Contrôle</a></li>
<li><a href="d.htm">Chimique</a></li>
<li><a href="e.htm">Dosage1</a></li>
<li><a href="f.htm">Dosage2</a></li>
<li><a href="g.htm">Autres analyses</a></li>
</ul>
</dd>
</dl>
<dl>
<dt onmouseover="javascript:montre('smenu2');">Comment faire...</dt>
<dd id="smenu2" onmouseover="javascript:montre('smenu2');" onmouseout="javascript:montre('');">
<ul>
<li><a href="prelevement.html">Prélever une mèche</a></li>
<li><a href="commande.htm">Commander</a></li>
</ul>
</dd>
</dl>
<dl>
<dt onmouseover="javascript:montre();"><a href="avantages.htm">Avantages</a></dt>
</dl>
<dl>
<dt onmouseover="javascript:montre();"><a href="questions.htm">Questions & Réponses</a></dt>
</dl>
<dl>
<dt onmouseover="javascript:montre();"><a href="nous-contacter.htm">Nous contacter</a></dt>
</dl>
</div>
</body>
</html>