Hi Victor,
Two things as far as I can tell:
(1) Your menu_data.js file still contains the definition for your "Main Menu". Since you've taken that out of the .js file and placed it into the table in your .htm file, you no longer need it in the menu_data.js file (you don't want two main menus!).
(2) Here's the biggie... You have a javascript syntax error in the Main Menu definition in your .htm file. It's only one little character (easy to do, difficult to find later!), but it's enough to blow the js up. Here's the code containing the error, starting at line 36 of your .htm file:
Code: Select all
aI("text=menu 2;showmenu=Menu 2;"); }
}
drawMenus();
You have two closing curly braces (
}) at the end of your main menu defintion instead of one. There's one at the end of line 36 and another by itself on line 37. You need to delete one of them (doesn't matter which).
I'd also like to mention that, if your goal is simply to center the menu and keep it centered as the user resizes the window, then there are easier ways to do it than placing it in a table.
Final note: Once you get it going, you might consider backing up your v5.17 files and getting the latest update, v5.32.
Hope that helps,
Kevin