Ok here is the deal I am building a dhtml menu system and it works great in ie 4.0+ and nn6 but in nn4.7 the table background color inside the layers doesn't show up. It does in the other two have a look
http://www.irq11.com/vhn/dhtml.htm
Any Ideas?
| SitePoint Sponsor |





Ok here is the deal I am building a dhtml menu system and it works great in ie 4.0+ and nn6 but in nn4.7 the table background color inside the layers doesn't show up. It does in the other two have a look
http://www.irq11.com/vhn/dhtml.htm
Any Ideas?
Please don't PM me with questions.
Use the forums, that is what they are here for.


Hey freddy,
I guess we should be chasing each other around since cat and dog
Anyway, NN 4 uses the bgColor property and not background-color. So in CSS styles, include that also, and with JavaScript, use bgColor isntead of backgroundColor.
I think that's your problem.
aDog
P.S>-Nice looking menu...
Moderator at www.javascriptcity.com/forums/





Thanks I'll give that a try! I really can't stand browser indifferences, my menu thankfully works in NN6 though
Please don't PM me with questions.
Use the forums, that is what they are here for.





Sorry that didn't work any other thoughts?
Please don't PM me with questions.
Use the forums, that is what they are here for.


Hey freddy,
I got two ideas that should work. First, I tested and style="bgColor..." doesn't work in NS. However, style="background-color..." does. So, you really have two choices that I'm pretty sure wourld. First, when you define the stuff for div1, div2, etc...
use:
td.background-color:...
not just background-color:...
Ok?
Now, that won't get the onmouseover thing to work in NS4, so here it goes:
What you gotta do is this (example):
original code
New code for NS 4 compatibility:Code:<td id="sub41" bgcolor="#eeeeee" onMouseOver="change_bg('sub41', '#ffffff')" onMouseOut="change_bg('sub41', '#eeeeee')"><a href="#" class="nav" onMouseOver="cleardelay(); " onMouseOut="navdelay(); "><img src="images/clear.gif" width="110" height="1" alt="" border="0"><br> Add User</a></td>
I knwo it's messy, but that's really the only way to change the background coor of a table cell in NS 4.Code:<td id="sub41" bgcolor="#eeeeee" onMouseOver="change_bg('sub41', '#ffffff')" onMouseOut="change_bg('sub41', '#eeeeee')"><ilayer><layer bgcolor="#eeeeee" onmouseover="this.bgColor='#ffffff'" onmouseout="this.bgColor='#eeeeee'"><a href="#" class="nav" onMouseOver="cleardelay(); " onMouseOut="navdelay(); "><img src="images/clear.gif" width="110" height="1" alt="" border="0"><br> Add User</a></layer></ilayer></td>
Hope that works/helps
aDog![]()
Moderator at www.javascriptcity.com/forums/


did this help you?
Moderator at www.javascriptcity.com/forums/





Thanks for the suggestion I tried it but it seemed to break the rest of my script, so we decided that those with NN4 will not get the changing bgcolor only those with IE4+ and NN6 will, thanks again!
Please don't PM me with questions.
Use the forums, that is what they are here for.
Bookmarks