more suckerfish issues with ie

TheDude05

Limp Gawd
Joined
Jan 27, 2005
Messages
393
The dropout part doesn't work at all in IE. I have that javascript in the head that allows for the hover class but that is what is breaking it. I did a straight copy of the script. I dont know Javascript or DOM well enough to debug it

Heres the site: http://www.ajwsoftware.com/cahcare/
 
To be honest I have no idea what the function you have in there is doing. All you really need to do is add a onmouseover, and onmouseout property to the LI tag you want to trigger the dropdown. Call a function that sets the dropdown to display block, or none depending on if it is the mouseover or out.

What I have described can be done using dom properties such as getchildren etc. if you want to make it generic enough to work for any list, but if you only have the one dropdown there is no reason why you cant give it an id and set its properties using document.getElementById().
 
IE tells me the problem is line 18, character 11:
Line 18: for (i=0; i<navRoot.childNodes.length; i++) {

Looks like you didn't declare i as a variable. Make it:
Line 18: for (var i=0; i<navRoot.childNodes.length; i++) {
 
Ok I fixed the javascript issue and it works now. I found a different script and pasted it in. I then figured out the script only looked for ids and not classes. As soon as I changed my nav menu to a id instead of a class it worked.

The only issue now is that IE isn't interpreting my z-index correctly on the pop outs
 
Back
Top