Menus that start on a new line http://www.oandcenterprises.c

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
carter_jl
Beginner
Beginner
Posts: 3
Joined: Wed Feb 28, 2007 3:45 pm

Menus that start on a new line http://www.oandcenterprises.c

Post by carter_jl »

http://www.oandcenterprises.com/fci/test.php

These are what my menus look like, Instead having to scroll to see the whole menu how would I make it so that I can start the menu on a new line.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Split up your menu at some convenient point, and then build a second style definition that places the second half of the menu below the first. An easy way to do that is to have the system make a copy of your existing style by using subStyle=new copyOf(menuStyle);, and then adding only the lines that need to be changed; e.g., subStyle.offbgcolor="#ff00ff";
subStyle.offcolor="#ffffff";
subStyle.onbgcolor="#ffffff";
subStyle.oncolor="#ff00ff"; [thank you, Ruth!]

This is an example only - change what you need to get the positioning you want. This method saves having to write the entire style definition all over again.
John
carter_jl
Beginner
Beginner
Posts: 3
Joined: Wed Feb 28, 2007 3:45 pm

split menus

Post by carter_jl »

The only problem with that solution is that these menus are database driven.
carter_jl
Beginner
Beginner
Posts: 3
Joined: Wed Feb 28, 2007 3:45 pm

Menus

Post by carter_jl »

Can this solution work for database driven menus
Post Reply