Vertical separator on 2 column sub menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tjjn062
Beginner
Beginner
Posts: 4
Joined: Mon Aug 25, 2008 3:58 pm

Vertical separator on 2 column sub menu

Post by tjjn062 »

I am trying to figure out how to create a verticle column separator. If you go to http://www.suppliesguys.com/ and mouse over the Brands on the menu, you can see the effect I am trying to accomplish.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Vertical separator on 2 column sub menu

Post by Ruth »

Hi,

You can do that using the divides setup and separators. I am going to post the code below for the MyMilonic submenu in the download so you can test it and see.

1. there are six items, so to get a two column divide you need to code it as divides=3;
2. because the menu has a border you will need to set the separatorsize in the odd items to 0
3. when the items divided into two columns for now it has to be a horizontal menu that you divide [seems to be a bug] so you have to set the submenu to be orientation='horizontal'; Dividing a horizontal menu will put all the odd items in the left column and the even items in the right column.


You'll see how I set the separators for the items that are in the right column

Code: Select all

with(milonic=new menuname("MyMilonic")){
style=menuStyle;
divides=3;
orientation='horizontal';
aI("text=Login;url=http://milonic.com/login.php;");
aI("text=Licenses;url=http://milonic.com/mylicenses.php;separatorsize=0;");
aI("text=Invoices;url=http://milonic.com/myinvoices.php;");
aI("text=Make Support Request;url=http://milonic.com/reqsupport.php;separatorsize=0");
aI("text=View Support Requests;url=http://milonic.com/mysupport.php;");
aI("text=Your Details;url=http://milonic.com/mydetails.php;separatorsize=0;");
}
Hope this helps

Ruth
tjjn062
Beginner
Beginner
Posts: 4
Joined: Mon Aug 25, 2008 3:58 pm

Re: Vertical separator on 2 column sub menu

Post by tjjn062 »

That did it. Thanks for your help. I really appreciate it!!
tjjn062
Beginner
Beginner
Posts: 4
Joined: Mon Aug 25, 2008 3:58 pm

Re: Vertical separator on 2 column sub menu

Post by tjjn062 »

Now I have to figure out how to provide the same look on a menu that is being built off of an HTML list. Any suggestions?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Vertical separator on 2 column sub menu

Post by Ruth »

Well, I might have some if you give me the page with the list on it so I can experiment :)

by the way, you do know that you can set up the Milonic menu to actually create itself from the list menu?

I can take that page you had and set up the milonic for you to show you how to do that. This means that on any browser with js the Milonic menu would be up at the top, and on any browser without js that list menu would show.

Ruth
tjjn062
Beginner
Beginner
Posts: 4
Joined: Mon Aug 25, 2008 3:58 pm

Re: Vertical separator on 2 column sub menu

Post by tjjn062 »

Thanks Ruth. Here is the sample that I have been working on for the lists.
Attachments
list.zip
(40.02 KiB) Downloaded 355 times
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Vertical separator on 2 column sub menu

Post by Ruth »

Hi,

I have it, and I'm working on it, but at this point I don't think this is going to be possible. I have contacted Milonic about it, but from my knowledge of the menu it isn't going to be possible to have the listmenu use divides at all. The various properties of the menu fall into classes, style, menu and item properties. Orientation and divides are menu properties so, for the submenus that come from a list menu, there is no place to apply those properties in the style section so no way to apply them in the listmenu. I'll keep playing to see if there is any way to do what you want and if I find it, I'll post back. Nothing is easy, right :lol:

Ruth
Post Reply