Grouping within SubMenu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
krispckn
Beginner
Beginner
Posts: 1
Joined: Wed Aug 10, 2005 4:04 pm

Grouping within SubMenu

Post by krispckn »

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

Post by Ruth »

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: Select all

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=;");  
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
Post Reply