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: Thursday February 8 2018 - 06:02:12

removing seperator


Poster: vidishasharma
Dated: Friday March 12 2004 - 9:21:12 GMT

as in new version of menu we have seperator after every intem of sub menu i want that seperators should appear after some item and it should not after other is there any way to do this


Poster: Ruth
Dated: Saturday March 13 2004 - 4:25:40 GMT

Yes, you can do that. Let's say you want all submenus to have the option of putting in separators for some items and not for others, then you would define a style for submenus. As an example

Code: Select all

with(subStyle=new mm_style()){
onbgcolor="#4F8EB6";
oncolor="#ffffff";
offbgcolor="#DCE9F0";
offcolor="#515151";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
font coding etc.
}
You put nothing in it about the separator. Then in the actual submenus, any place you want a separator you code it in the item.

Code: Select all

with(milonic=new menuname("Milonic")){
style=subStyle;
aI("text=1st item-no separator;url=http://www.whatever.com/;");
aI("text=2nd item-separator appears after it;separatorcolor=#2D729D;separatorsize=1;url=http://www.whatever.com/;");
aI("text=3rd item-separator appears and is a different color-has a different height-has padding-around it etc;separatorcolor=#FF0000;separatorsize=2;separatorpadding=2;separatorwidth=150;showmenu=whatever;");

}


Ruth


Poster: vidishasharma
Dated: Saturday March 13 2004 - 10:46:37 GMT

thanks a lot ,I thing that will solve my problem :D