Menu in a table

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Agent_9000
Beginner
Beginner
Posts: 3
Joined: Mon Jun 14, 2004 11:23 pm

Menu in a table

Post by Agent_9000 »

How do you get the menu to work in a table? It won't work for me.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Most often there really is no need to place it in a table, since it will sit on top of the design and saves a lot of time of placing it in something and only one file to change.

A url would help to see what you are working with.

If the table sits in a div that won't work.

A simple test in a table is to move the javascript for menu_data.js into the table and see what happens.

Then if you want to do it the suggested way, you leave menu_data.js under the other scripts just under the <body> tag.

Cut and paste the main menu from menu_data.js into the table.
Add a
drawmenus();

(You are leaving the global styles and sub menus in the menu_data.js file.)

and it should work.


maz
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi,

I'll just add that sample9 discusses placing a menu in a table. You'll find lots of info about it there.

Cheers,

Kevin
Post Reply