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:36
Grouping within SubMenu
Poster: krispckn
Dated: Wednesday August 10 2005 - 16:06:26 BST
Hi.
I want to be able to group my menu like the Milonic.com homepage does with their examples menu.
Can anyone tell me how I can do this or where I can find some sample code that will show me how this is done?
Thanks in advance!
KP
Poster: Ruth
Dated: Wednesday August 10 2005 - 18:12:22 BST
Hi,
Which examples menu? If you mean the DHTML Samples Menu, that is done using headers. So, let's say you had 4 sections you wanted to divide in your vertical submenu and you wanted a 'header' for each section, at the beginning of each section you would code an aI string and set it as type=header. For example, a first 'division' could be
Code:
aI("text=My First Header;type=header;align=center;");
aI("text=Item 1 of 1st header;url=;");
aI("text=Item 2 of 1st header;url=;");
aI("text=My Second Header;type=header;align=center;");
aI("text=Item 1 of 2nd header;url=;");
aI("text=Item 2 of 2nd header;url=;");
aI("text=Item 1 of 1st header;url=;");
aI("text=Item 2 of 1st header;url=;");
aI("text=My Second Header;type=header;align=center;");
aI("text=Item 1 of 2nd header;url=;");
aI("text=Item 2 of 2nd header;url=;");
With type=header this item will not change when you mouseover it and will use whatever you've put into the headerbgcolor and headercolor of the menuStyle.
Hope that helps.
Ruth