Text background colour in NS4.7

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
richard.beton
Beginner
Beginner
Posts: 2
Joined: Tue Jul 09, 2002 2:10 pm

Text background colour in NS4.7

Post by richard.beton »

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
:)
Post Reply