removing seperator

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
vidishasharma
Beginner
Beginner
Posts: 3
Joined: Wed Mar 10, 2004 8:20 am

removing seperator

Post by vidishasharma »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
vidishasharma
Beginner
Beginner
Posts: 3
Joined: Wed Mar 10, 2004 8:20 am

Post by vidishasharma »

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