Transparent in offbgcolor - color in onbgcolor

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
edweill
Beginner
Beginner
Posts: 9
Joined: Wed May 26, 2004 4:42 pm

Transparent in offbgcolor - color in onbgcolor

Post by edweill »

We have a gradient beneath the menu and would like to see the text against that gradient when we are not pointing at that menu item. If you go on the item, we would like a gold color "#FFEC73" as the item background. I tried using offbgcolor='', but this results in the gold color appearing and not going away when off. I tried offbgcolor=' ' . This works for pc but again has the gold color staying on my Mac test platform
g3 os9 with ie5. Is there a good way to return to no bgcolor so the underlying gradient shows through?

http://lisibrokerstaging.com.xohost.com/t6.shtml
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Ed,

Things to try, in the order that I'd try them.

(1) delete offbgcolor entirely from the style. The default should be transparent.

(2) offbgcolor="transparent";

(3) offbgcolor=null; (no quotes)

(4) offbgcolor=""; (no space between the quotes)

Test each one in a variety of browsers, since there is variation in how browsers interpret "transparent". If you don't find one that works well for all of your targeted browsers, then you may have to set the offbgcolor conditionally (using "if"s with some browser sniffing); which isn't too hard to do.

Kevin
edweill
Beginner
Beginner
Posts: 9
Joined: Wed May 26, 2004 4:42 pm

results

Post by edweill »

Thanks for the suggestions. On my test platforms (win2000 IE6, win98 IE6, and MAC OS9 IE5) the "transparent" seems to work. I am having it tested on a couple of other platforms (MAC OSX Safari and MAC OS9.2 IE5.1.7).

I also am trying using "bgimage=/i/bgdn.gif;overbgimage=/i/bgup.gif;" where bgdn.gif is a transparent gif and bgup.gif has my color. This also works on my three test platforms

Thanks again!
Post Reply