ho "risolto" così
più questo javascriptcodice:body { margin: 0; padding: 15px; } #menuContainer { background-color: white; text-decoration: none; color: #666666; font-weight: bold; font-size: 10pt; font-family: Verdana, Arial, sans-serif; width: 10em; padding: 0px; } #menuContainer ul { margin: 0; padding: 0; list-style: none; width: 150px; } #menuContainer ul li { position: relative; } #menuContainer li ul { position: absolute; left: 149px; top: 0; display: none; } #menuContainer ul li a { display: block; text-decoration: none; color: #777; background: #fff; padding: 5px; border: 1px solid #ccc; border-bottom: 0; } /* Fix IE. Hide from IE Mac \*/ * html ul li { float: left; } * html ul li a { height: 1%; } /* End */ #menuContainer ul { margin: 0; padding: 0; list-style: none; width: 150px; border-bottom: 1px solid #ccc; } #menuContainer li:hover ul, li.over ul { display: block; }
solo che se lascio #menuContainer nel css con ie non va... se tolgo "#menuContainer" tutto ok funzia, ma lo fa per tutti i tag ul li...come faccio a modificare questo comportamento?codice:startList = function() { if (document.all&&document.getElementById) { navRoot = document.getElementById("nav"); 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", ""); } } } } } window.onload=startList;

Rispondi quotando