Strange background color

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
cgullzcry
Beginner
Beginner
Posts: 3
Joined: Wed Aug 30, 2006 2:38 pm

Strange background color

Post by cgullzcry »

I changed the background color in my menu but one item is a different color that I don't see listed in the javascript. The second page I inserted the menu on, a different item is a strange color. What am I missing?

Here is the link to the first page I put the menu on:
http://www.carteretcountyschools.org/mms
If you look closely, you'll see that the "Home" button is a different color blue than the rest of the bar.

Here is the link to the second page I inserted the menu on:
http://www.carteretcountyschools.org/mm ... edules.htm
Now you see the "About MCMS" button is a different color blue than the rest of the bar but the "Home" button is fine.

Here is how I have altered the javascript:
bordercolor="#000066";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#CC1100";
headercolor="#CC1100";
offbgcolor="#9DB9E1";
offcolor="#000000";
onbgcolor="#A80000";
oncolor="#FFFFFF";
outfilter="randomdissolve(duration=0)";
overfilter="Fade(duration=0.2);Alpha(opacity=95);Shadow(color=#777777', Direction=135, Strength=4)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#000066";
separatorpadding=5;
separatorsize=1;
subimage="altmenu/arrow.gif";
subimagepadding=7;
}

Any help would be appreciated!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Really strange. I took your code from http://www.carteretcountyschools.org/mms and put it on one of my servers, making no changes at all. The funny blue, which I can see from the links you posted, is no longer there! http://www.west.asu.edu/sa/testsite/. Maybe Ruth can figure this one out.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

It's your pagebgcolor which is making the Home item a different color. Same thing happens when you go to the other page because the page matches the item. The reason it is not covering what seems to be the 'full' item is that you have a 5px margin set in the menu so the pagebgcolor only covers the item minus the 5px top, right, bottom, left.

Ruth
cgullzcry
Beginner
Beginner
Posts: 3
Joined: Wed Aug 30, 2006 2:38 pm

Thanks

Post by cgullzcry »

Thank you! I felt like an idiot as I continued to put the menu on other pages and noticed the pattern.

Is there a way to keep the 5px margin and change the color to something else? I just don't like the clash of blues.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

The 5px margin doens't have anything to do with the color. It will take either the menubgcolor, or if that is not given, then it assumes the offbgcolor. You can make the pagebgcolor anything you want. Some people eliminate that and use only pagecolor which only changes the font color when you're on the related pages. Or they use only pagecolor and pageborder. For example, you could make pagecolor="#ffffff"; and add pageborder="3px double #ffffff"; That would make the font color white when you're on the related page and the are that is now that different blue would have a double border around that area but since you don't have pagebgcolor listed it would be the same bgcolor as offbgcolor.

Ruth
Post Reply