Divide Script Between Cells?

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top