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:38
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:
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.onbgcolor="#4F8EB6";
oncolor="#ffffff";
offbgcolor="#DCE9F0";
offcolor="#515151";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
font coding etc.
}
Code:
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;");
}
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