Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:32
Text background colour in NS4.7
Poster: richard.beton
Dated: Tuesday July 9 2002 - 14:19:36 BST
Netscape 4.7 doesn't set the background colour of text correctly. I think this is a bug in NS4 and I don't know how to overcome it.
However, I have made a useful workaround in my menu configuration. My menus have light-coloured text on a darker background. NS4 spoils this by having light coloured text on a white background, which is illegible. So I added this to my Milonic menu config file:
<pre>if(_d.layers)
{ // NS4 doesn't set text background correctly
fontFColOff="F00"
fontBColOff="80c080"
fontFColOn="F00"
fontBColOn="FFFFFF"
}
else
{ // preferred colours
fontFColOff="FFFFFF"
fontBColOff="80c080"
fontFColOn="ffebdc"
fontBColOn="4b0082"
}
style1=[ // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
fontFColOff, // Mouse Off Font Color
fontBColOff, // Mouse Off Background Color
fontFColOn, // Mouse On Font Color
fontBColOn, // Mouse On Background Color
</pre> <i>...etc...</i>
Rick