Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:44
pagebgcolor/pagecolor and on/off class
Poster: Ruth
Dated: Thursday February 5 2004 - 19:58:08 GMT
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:
.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
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;}
Ruth
Poster: kevin3442
Dated: Monday February 9 2004 - 17:13:15 GMT
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