2 questions

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mackey555
Beginner
Beginner
Posts: 1
Joined: Fri Feb 18, 2005 1:16 am

2 questions

Post by mackey555 »

Is there a way to define an exact width and height for the headers? Also i'm trying to have a different rollover color for each menu. I have the submenus different colors, but it doesn't work for the headers of the menu. I make new styles just like the submenus, but it doesn't work.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi mackey,

By header do you mean main menu? If you want each main menu item to have a different color, you can do that by putting it in each item. For example, define your main menu style to have the basic things like borders and such that you want, then in each item you would code the on/offbgcolors, on/offcolors etc.

Code: Select all

aI("text=Home;url=http://milonic.com/;status=Back To Home Page;offbgcolor=#ffff00;onbgcolor=#0000ff;offcolor=#000000;oncolor=#ffffff;"); aI("text=Menu Samples;align=center;showmenu=Samples;title=All Samples"); offbgcolor=#00ff00;onbgcolor=#6d8e92;offcolor=#000000;oncolor=#ffffff;"); 
You can do that for each main menu item. You can do that for any menu item.

As for the height, again, are you talking about the main menu items? Is your menu horizontal or vertical? You can specify a menu height, an itemheight, an itemwidth, but remember that if someone has their text size set really big it probably would change it. You could do it more easily with images

Ruth
Post Reply