S
scorpion53061
I am trying to divide this javascript between 2 different cells in a row.
How can I get myMenu in one cell and MyMenu in another cell?
<SCRIPT LANGUAGE="JavaScript1.2" SRC="http://menu.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2">
var myMenu = new Menu();
myMenu.addMenuItem("my menu item A");
myMenu.addMenuItem("my menu item B");
myMenu.addMenuItem("my menu item C");
myMenu.addMenuItem("my menu item D");
var myMenu4 = new Menu("hello");
myMenu4.addMenuItem("my menu item A");
myMenu4.addMenuItem("my menu item B");
myMenu4.addMenuItem("my menu item C");
myMenu4.addMenuItem("my menu item D");
myMenu.writeMenus();
</SCRIPT>
<A HREF="javascript:window.showMenu(window.myMenu);">TEST</A>
<A HREF="javascript:window.showMenu(window.myMenu4);">TEST1</A>
How can I get myMenu in one cell and MyMenu in another cell?
<SCRIPT LANGUAGE="JavaScript1.2" SRC="http://menu.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2">
var myMenu = new Menu();
myMenu.addMenuItem("my menu item A");
myMenu.addMenuItem("my menu item B");
myMenu.addMenuItem("my menu item C");
myMenu.addMenuItem("my menu item D");
var myMenu4 = new Menu("hello");
myMenu4.addMenuItem("my menu item A");
myMenu4.addMenuItem("my menu item B");
myMenu4.addMenuItem("my menu item C");
myMenu4.addMenuItem("my menu item D");
myMenu.writeMenus();
</SCRIPT>
<A HREF="javascript:window.showMenu(window.myMenu);">TEST</A>
<A HREF="javascript:window.showMenu(window.myMenu4);">TEST1</A>