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:41
can't seem to split functions [or whatever they are called]
Poster: Ruth
Dated: Tuesday February 24 2004 - 1:26:54 GMT
Not sure if on and off class are called functions, anyway. Can one not use just one of them? I am using on/offclass but because of netscape 4.79 not reading that, in the submenus I have declared an offbgcolor, offcolor, offborder. Then in the head of my html page I've coded for the body and also have this style coding
Code:
.subOn {
background-color:#ffffff;
color:#FF0000;
border: 1px #FF0000 ridge;
separatorsize: 1px #FF0000 solid;
font-size: 10px;
font-style: normal;
font-weight: bold;
font-family: arial,helvetica,"san serif";
text-align: left;}
background-color:#ffffff;
color:#FF0000;
border: 1px #FF0000 ridge;
separatorsize: 1px #FF0000 solid;
font-size: 10px;
font-style: normal;
font-weight: bold;
font-family: arial,helvetica,"san serif";
text-align: left;}
Then in the data file I have this
Code:
with(subs=new mm_style()){
onclass="subOn";
offbgcolor="#ffffee";
offcolor="#8e8b96";
offborder="1 #041462 solid";
fontsize="10px";
fontstyle="normal";
fontweight="normal";
fontfamily="arial,helvetica,san serif";
}
onclass="subOn";
offbgcolor="#ffffee";
offcolor="#8e8b96";
offborder="1 #041462 solid";
fontsize="10px";
fontstyle="normal";
fontweight="normal";
fontfamily="arial,helvetica,san serif";
}
However it seems that once the menu reads all the off settings, it ignores the onclass except the border. I've also tried putting the onclass in the actual menu items that call submenus. No luck. So, is it required that if you use one you must use the other for them to work?
Ruth
[why I am doing what I do is that netscape 4.79 doesn't read the class so, until recently it would read what I had listed in my style definitions for body. That was fine for the main menu which sits in a blank space, the menu in 4.79 looked like the background was the color of the page and the text was the font color [now link blue] but what happened in the submenus is that since it really WASN"T putting a color into the menu as a bgcolor, it was just sort of transparent, when a submenu opened, if it opened over any text area there was no background in the menu and the menu text looked like it was written right over the page text all blurred together. So, I just defined submenu colors. But, I was just trying to see if I could define off colors and then have an onclass which would be the colors I wanted and see if netscape would just keep the off colors that were already defined, however as soon as I tried to use onclass for on colors and leave the defned colors for off colors the onclass seemed to quit working.]