Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:16

over and out filter on submenu only?


Poster: kerryreilly __at__ yahoo.com
Dated: Friday August 6 2004 - 16:33:20 BST

Can anyone help me to apply over and out filters on sub menus, not the main menu? I tried just moves those two lines into each submenu function, but doesn't seem to have worked...
Thanks in advance...


Poster: Ruth
Dated: Friday August 6 2004 - 21:42:37 BST

I don't know what your style code is, but you could do this. Create another style using copy of, which is a very short method for a second style. But, in that copy of style you also include the over and out filter which you have left out of the main style. For example we'll assume mainstyle as your main style name and substyle as the other style:
Code:
with(mainstyle=new mm_style()){
onbgcolor="#000000";
oncolor="#ffffff";
offbgcolor="#ffffff";
offcolor="#FF0000";
bordercolor="#FF0000";
borderstyle="solid";
borderwidth=1;
and so on for everything else you have here;}
Then in your copy of you would put this
Code:
subStyle=new copyOf(mainstyle);
subStyle.overfilter=whatever you want for it;
subStyle.outfilter=whatever you want for it;


The substyle you just wrote goes after the complete end of the mainstyle, after the closing }

Having done that you need to just make sure you put substyle as the style for the submenus. It will be exactly the same as the mainstyle, using the same colors, fonts whatever you have listed in the mainstyle but will also have the over and out filters. If you're not sure about using copy of method, then you could just copy and paste your main style rename it and add the over and out filter options you want. Hope that helps.

Ruth