pagebgcolor/pagecolor and on/off class

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

pagebgcolor/pagecolor and on/off class

Post by Ruth »

I'm using on/offclass so that the menu picks up my style codes on each page and changes to match the page. I can use pagebgcolor and pagecolor if I assign it a specific value and it would just be the same no matter which page. I was wondering if there might be some code or something so I could get it to pick up whatever onmouseover code would be on that page? For example, on pagex.htm I have this in the head

Code: Select all

.main2on {
		background-color:#96bdc4;
		color:#294954;
		border: 2px #FFCCCC ridge;
		separator: 1px #96bdc4 solid;
		font-size: 11px;
		font-style: normal;
		font-weight: bold;
		font-family: arial,helvetica,"times new roman";
		text-align: center;}
That means when you mouseover the menu the items take those colors. On pagey.htm there is a different set of colors [each page has coding in the head] So, I'm wondering if there is anyway to get the menu to read whatever the onclass is and choose that for the pagebgcolor and pagecolor? Hope that makes sense :)

Ruth
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 Ruth,

Have you tried the pageclass property? I think that'll do what you want in a more direct fashion. It's like pagecolor and pagebgcolor, but instead of colors, you specify a class to use for the appearance of a menu item that corresponds to the current page. Syntax is the same as you already use for onclass and offclass.

Cheers,

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

Post by Ruth »

::whoo hoo:: works perfectly. :D Thanks, Kevin.

Ruth
Post Reply