Son of Suckerfish-menu virker ikke i IE6
Hej jeg har en son of suckerfish-menu på en hjemmeside. Den virker fint i IE7 og FX, men ikke i IE6HTML
-----------------------
<div id="menu_place">
<ul id="nav">
<li><a href="/altaner.aspx">Altaner</a>
<ul><li><a href="/altaner/test.aspx">test</a></li>
</ul>
</li>
<li><a href="/carporte.aspx">Carporte</a></li>
<li><a href="/traehuse.aspx">Træhuse</a></li><li><a href="/erhverv.aspx">Erhverv</a></li><li><a href="/kontakt.aspx">Kontakt</a></li></ul>
</div>
<div style="clear: left;"></div>
CSS
-------------------------------------------
#nav, #nav ul {
float: left;
width: 800px;
list-style: none;
line-height: 1;
font-weight: bold;
padding: 0;
margin: 0 0 1em 0;
}
#nav a {
display: block;
width: 10em;
w\idth: 6em;
text-decoration: none;
padding: 0.25em 2em;
font: normal 10pt/12pt arial;
}
#nav li {
float: left;
padding: 0;
width: 10em;
}
#nav li ul {
position: absolute;
left: -999em;
height: auto;
width: 14.4em;
w\idth: 13.9em;
font-weight: normal;
border-width: 0.25em;
margin: 0;
}
#nav li li {
padding-right: 1em;
width: 9em;
background-color: #ffffff;
}
#nav li ul a {
width: 13em;
w\idth: 9em;
}
#nav li ul ul {
margin: -1.75em 0 0 14em;
}
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
left: -999em;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul {
left: auto;
}
#nav li:hover, #nav li.sfhover {
background-color: #ffffff;
}
SFHover (hover-script til IE6)
-------------------------------
<script type="text/javascript">
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i>sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
</script>
