Changing Colors

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
rgw1977
Beginner
Beginner
Posts: 4
Joined: Tue Mar 08, 2005 6:50 pm
Location: Plano, Illinois, USA
Contact:

Changing Colors

Post by rgw1977 »

I am having trouble with changing colors.

Specifically the Background Color (onbgcolor). See Below:

Here is the Vert Style coding:

with(vertStyle=new mm_style()){
bordercolor="rgb(133, 12, 169)";
borderstyle="solid";
borderwidth=1;
fontfamily="arial, tahoma";
fontsize="72%";
fontstyle="normal";
headerbgcolor="rgb(255, 143, 255)";
headerborder=1;
headercolor="rgb(255, 143, 255)";
image="18_blank.gif";
imagepadding=3;
menubgimage="backoff_green.gif";
offbgcolor="transparent";
offcolor="#000000";
onbgcolor="rgb(170, 175, 229)";
onborder="1px solid #999999";
oncolor="#000000";
onsubimage="on_13x13_greyboxed.gif";
outfilter="randomdissolve(duration=0.2)";
overfilter="Fade(duration=0.1);Alpha(opacity=95);Shadow(color=rgb(170, 175, 229)', Direction=135, Strength=3)";
padding=3;
pagebgcolor="#993399";
pagecolor="#000066";
pageimage="db_red.gif";
separatoralign="right";
separatorcolor="#999999";
separatorpadding=3;
separatorwidth="85%";
subimage="black_13x13_greyboxed.gif";

Here is the horiz style:

with(horizStyle=new mm_style()){
styleid=1;
bordercolor="rgb(133, 12, 169)";
borderstyle="solid";
borderwidth=1;
fontfamily="arial, tahoma";
fontsize="72%";
fontstyle="normal";
headerbgcolor="#AFD1B5";
headerborder=1;
headercolor="#000099";
offbgcolor="#CFE2D1";
offcolor="#000000";
onbgcolor="rgb(170, 175, 229)";
onborder="1px solid #999999";
oncolor="#000000";
onsubimage="on_downboxed.gif";
overbgimage="backon_beige.gif";
padding=3;
pagebgcolor="#993399";
pagecolor="#000066";
pageimage="db_red.gif";
separatoralign="right";
separatorcolor="#999999";
separatorwidth="85%";
subimage="downboxed.gif";


According to this the color in the specified area should be the same on both the horiz and the vert menus, however, if you look at my page http://www.worldfurnituremall.net/new/index.html you will see that on the horiz menu, it is still that yellowish color, just as it was as you have it on your web site.

Can you advise what I am doing wrong here?

Thanks, Ryan!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You still have the overbgimage listed in the menu

Code: Select all

overbgimage="backon_beige.gif"; 
That's that kind of yellow/beige color. When I first moused over it turned purple, that's because the image wasn't loaded yet, the next time, the image was loaded so when I moused over it used that overbgimage.

Ruth
rgw1977
Beginner
Beginner
Posts: 4
Joined: Tue Mar 08, 2005 6:50 pm
Location: Plano, Illinois, USA
Contact:

Post by rgw1977 »

Oh, ok. I was comparing the two styles, and I could not figure out what was wrong. Thank you so much for your help. This is a great scrips, and I am having fun playing with it.
Post Reply