I am new to javascript and still learning, I have a script that I want to add sub menus too, but I have not got a clue, there is one sub menu but I would like a third level.
<code>
menu_array[0]=new menuItem(0,[" Home "," Fruit "," Dogs "," Vegetables "," Other "],["menu.html",1,2,3],[0,0,0,0]);
//Fruit
menu_array[1]=new menuItem(1,[" Apples "," Oranges "],["apple.jpg","orange.jpg"],[0,0]);
//Dogs
menu_array[2]=new menuItem(2,[" Wikipedia "," Google "],["http://en.wikipedia.org/wiki/Dog",":http://images.google.com/images?svnum=10&hl=en&lr=&q=dog&btnG=Search"],[0,0]);
//Vegetables
menu_array[3]=new menuItem(3,[" Green Beans "," Squash "],["greenbeans.html","squash.html"],[0,0]);
</code>
the menu array[1] is a sub menu, that I would like to add another level too. Can anyone help me out?