home *** CD-ROM | disk | FTP | other *** search
/ com!online 2002 May / comcd0502.iso / homepage / special / javascript / 02_01 / java / Menue / yx_menu_sample.js < prev    next >
Encoding:
Text File  |  1999-11-15  |  1.7 KB  |  28 lines

  1. var myMenu = new Array();
  2. myMenu[0] = new Array("M","sub menu 1","this is the first sub menu","menu1");
  3. myMenu[1] = new Array("M","sub menu 2","this is the second sub menu","menu2");
  4. myMenu[2] = new Array("S","","","");
  5. myMenu[3] = new Array("L","menu item a","this is the first menu item","http://www.iname.com");
  6. myMenu[4] = new Array("L","menu item b","this is the second menu item","http://www.operamail.com");
  7. myMenu[5] = new Array("M","sub menu 3","this is the last sub menu","menu3");
  8. myMenu[6] = new Array("S","","","");
  9. myMenu[7] = new Array("L","menu item c","this is the last menu item","the URL of item 3");
  10.  
  11. var menu1 = new Array();
  12. menu1[0] = new Array("L","sub item 1","this is the first item in this sub menu","the URL of sub item 1");
  13. menu1[1] = new Array("S","","","");
  14. menu1[2] = new Array("L","sub item 2","this is the second item in this sub menu","the URL of sub item 2");
  15. menu1[3] = new Array("L","sub item 3","this is the last item in this sub menu","the URL of sub item 3");
  16.  
  17. var menu2 = new Array();
  18. menu2[0] = new Array("L","sub item 1","this is the first item in this sub menu","the URL of sub item 1");
  19. menu2[1] = new Array("L","sub item 2","this is the second item in this sub menu","the URL of sub item 2");
  20. menu2[2] = new Array("S","","","");
  21. menu2[3] = new Array("L","sub item 3","this is the last item in this sub menu","the URL of sub item 3");
  22.  
  23. var menu3 = new Array();
  24. menu3[0] = new Array("L","sub item 1","this is the first item in this sub menu","the URL of sub item 1");
  25. menu3[1] = new Array("L","sub item 2","this is the second item in this sub menu","the URL of sub item 2");
  26. menu3[2] = new Array("S","","","");
  27. menu3[3] = new Array("L","sub item 3","this is the last item in this sub menu","the URL of sub item 3");
  28.