|
|
How do I resize and position the navigation menu bar inside a table?
Return to Recent Questions
Q:
I have generated my navigation menu bar and want to incorporate it
into my current website.
How do I resize and position the navigational
menu inside a table?
A:
1) Resize:
You could specify exact width for menu using that parameter:
var menuWidth="400px";
You can also set exact width for each top item using Individual Item Styles:
var itemStyles = [
["itemWidth=120px"],
];
var menuItems = [
["Item 1","", "", "", "", "", "0", "", "", ],
["Item 2","", "", "", "", "", "0", "", "", ],
["Item 3","", "", "", "", "", "0", "", "", ],
["Item 4","", "", "", "", "", "0", "", "", ],
["Item 5","", "", "", "", "", "0", "", "", ],
];
2) Position the navigational menu inside a table:
You can paste the menu inside the <div> or <table> tag, for example:
<DIV align=center>
<SCRIPT src="data/data.js" type=text/javascript>
</SCRIPT>
</DIV>
<table width=800>
<tr>
<td align=center width=600><script type="text/javascript" src="data/data.js"></script></td>
</tr>
</table>
Return to Recent Questions
Related:
- Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
- Sep 30, 2006 - The frame below the javascript menubar is moved to the bottom of the page.
- Oct 15, 2006 - Submenus doesn't position correctly in my javascript template.
- Nov 06, 2006 - Each item is a different width. Can I do this with your html navigation bar?...
- Nov 10, 2006 - I want to set the status bar messages to another than the link text from the xp menu items?
- Nov 12, 2006 - Is this menu bar code compatible under Linux?
- Nov 29, 2006 - Why the background images disappear for a while after hovering over html menubar?
- Nov 30, 2006 - How to select the font and backcolors in java menubar using the hexidecimal number?
- Dec 04, 2006 - When running navigation bar code with IE or Firefox, the background is transparent.
- Dec 04, 2006 - With the licensed .js files of menu dhtml the status bar on IE shows "Error on page".
- Dec 06, 2006 - Is using search engine friendly code the same as using normal html menu bar for spiders?
|