PDA

View Full Version : CSS Dropdown hangup please check site...


cush
07-03-2006, 06:50 AM
Hi all,

Same old, same old...ie6 has a hang up when the following site is intially loaded... http://ns-legal.com . The dropdown menu won't work on intial calling of the domain as the status bar will announce (2 items remaining). When you refresh page or select a page from the menu, the dropdown works properly henceforth. The following code is used:(with the typical jvscript hack.)--

<div class="menu">
<ul id="nav">
<li> <a>Home</a> </li>
<li> <a href="default.aspx">Practice Areas </a>
<ul>
<li> <a href="businesslitigation.html">Business Litigation</a> </li>
<li> <a href="labor.html">Labor</a> </li>
<li> <a href="personalinjury.html">Personal Injury</a> </li>
<li> <a href="realestate.html">Real Estate</a> </li>
<li> <a href="technology.html">Technology</a> </li>
</ul>
</li>
<li> <a href="default.aspx">Attorneys</a>
<ul>
<li> <a href="bio_naso.html">Michael A. Naso</a> </li>
<li> <a href="bio_samini.html">Keyvan Samini</a> </li>
<li> <a href="bio_ghaderi.html">Parjack Ghaderi</a> </li>
</ul>
</li>
<li> <a title="Legal Resources" href="resources.html">Resources </a> </li>
<li> <a title="Testimonials" href="testimonials.html">Testimonials </a> </li>
<li> <a title="Verdicts and Settlements" href="verdicts.html">Verdicts </a> </li>
<li> <a title="Contact Us" href="contact.html">Contact Us </a> </li>
</ul>
</div>


Javascript in the <head>

<script type="text/javascript">
<!--
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;
//-->
</script>

Please go the the site to view the problem. Any suggestions would be greatly appreciated.

Please note: there are no background images attached to the stylesheet in association with the menu that would cause a hangup on loading...

Thanks alot for any response..I know this is a common thread and I apologize in advance for the repetitive question.....

Cush

_Aerospace_Eng_
07-03-2006, 06:54 AM
Not much you can do. The onload function which is used to make the menu work in IE6 is only called after the page has loaded because the elements needed for the menu need to exist before the script can work.

cush
07-03-2006, 05:23 PM
Thanks bro,

I figured that was the case. I appreciate the response.

Cush