Assistance for ie6 for he get hover in li

<script type="text/javascript">

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("industry");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
 }
 node.onmouseout=function() {
 this.className=this.className.replace(" over", "");
  }
  }
 }
 }
}

function addLoadEvent(func) {
 var oldonload = window.onload;
 if (typeof window.onload != 'function') {
   window.onload = func;
 } else {
   window.onload = function() {
     oldonload();
     func();
   }
 }
}

addLoadEvent(startList);

</script>

and update the css in

#navTop li:hover ul {
       left: 0;
       top: 100%;
}

change for

#navTop li:hover ul, #navTop li.over ul  {
       left: 0;
       top: 100%;
}

and ie6 gets fine too

this is the best way that i see until now i only change one thing but
i had no try yet is not hide sum menu with css but with javascript, in
this case the

       position: absolute;
       left: -10000px;
       top: -10000px;

was givem via javascript, because if only javascript doesnt work u
will never see the submenus.

Gaspar
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to