|
|
|
Can I create dhtml menu code with the same width of the top items? Each item has a different width now...
Return to Recent Questions
Q:
Is it possible to create dhtml menu code items with different width or will I have to make all the main dhtml menu code items/graphics to be a same width?
var itemStyles = [
["itemWidth=98px"],
];
A:
You can set itemWidth for each main item.
Use DHTML Tuner to create your individual styles.
You should write, for example, so:
var itemStyles = [
["itemWidth=98px"], // style 0
["itemWidth=100px"], // style 1
["itemWidth=110px"], // style 2
["itemWidth=120px"], // style 3
["itemWidth=95px"], // style 4
];
And then assign Individual Styles for the dhtml menu code items:
var menuItems = [
["","", "data.files/products.gif", "data.files/products_mo.gif", "Products", "_self","0" , , , ],
["","", "data.files/demoCenter.gif", "data.files/demoCenter_mo.gif", , ,"1", , , ],
["","", "data.files/resources.gif", "data.files/resources_mo.gif", , ,"2", , , ],
["","support.htm", "data.files/support.gif", "data.files/support_mo.gif", , "_self","4", , , ],
["","", "data.files/company.gif", "data.files/company_mo.gif", , , , , , ],
];
Return to Recent Questions
Related:
- March 17, 2007 - Can the vertical drop down menus items be set so they are all the same width?
- March 20, 2007 - Is it possible to have the "parent" items of the javascript image menu be purely an image?
- March 21, 2007 - How can we increase the width of the vista style buttons of dhtml popup menu?
- Apr 01, 2007 - How can I set different parameters for diferent items in my drop down menu horizontal?
- Apr 02, 2007 - Where can I change the font size of the top dhtml menu dropdown items?
- Apr 03, 2007 - I would like to change the height of the submenu items in the popup menu javascript...
- Apr 11, 2007 - I cannot see the shadow on the top items in my image rollover menu example.
- Apr 16, 2007 - The popup menu gives me the top level of the javascript submenu...
- Apr 20, 2007 - I need the BG color behind items to be flush with the sides of the popup menu script.
- Apr 30, 2007 - For some reason all of the cascading menus items are squished together...
- May 15, 2007 - We want to set a specific width for each top level item in the java navigation menu
|