function init()
{
menus[0] = new menu(125, "vertical", 10, 10, -1, -1, "white", "black", "MS Sans Serif", 9, "bold", "bold", "black", "white", 2, "black", 2, "v", false, true, true, false, 0, true, 5, 5, "gray");
menus[0].addItem("#", "NEWWIN", 100, "center", "Home", 0);
menus[0].addItem("#", 100, "center", "Products", 1);
menus[0].addItem("#", 100, "center", "Services", 2);
menus[0].addItem("#", 100, "center", "Contact Us", 0);
menus[0].addItem("#", 100, "center", "Links", 0);
}
{
menus[0] = new menu(125, "vertical", 10, 10, -1, -1, "white", "black", "MS Sans Serif", 9, "bold", "bold", "black", "white", 2, "black", 2, "v", false, true, true, false, 0, true, 5, 5, "gray");
menus[0].addItem("#", "NEWWIN", 100, "center", "Home", 0);
menus[0].addItem("#", 100, "center", "Products", 1);
menus[0].addItem("#", 100, "center", "Services", 2);
menus[0].addItem("#", 100, "center", "Contact Us", 0);
menus[0].addItem("#", 100, "center", "Links", 0);
}
This parameter controls the set size of the menu. If the menu is horizontal, it refers to the height of the menu. If the menu is vertical, then it refers to the width of the menu. The number is measured in pixels. (125)
How can I change the 125 setting so I can center my DHTML menu? Or how do I center it at all?
Thanks,
Patrick
Comment