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

  1. var theMenu = new Array();
  2. theMenu[0] = new Array("menu","myMenu1");
  3. theMenu[1] = new Array("MENU","myMenu2");
  4.  
  5. var myMenu1 = new Array();
  6. myMenu1[0] = new Array("M","sub menu 1","this is the first sub menu","menu11");
  7. myMenu1[1] = new Array("M","sub menu 2","this is the second sub menu","menu12");
  8. myMenu1[2] = new Array("S","","","");
  9. myMenu1[3] = new Array("L","www.iname.com","this is the first menu item","http://www.iname.com");
  10. myMenu1[4] = new Array("L","www.operamail.com","this is the second menu item","http://www.operamail.com");
  11. myMenu1[5] = new Array("M","sub menu 3","this is the last sub menu","menu13");
  12. myMenu1[6] = new Array("S","","","");
  13. myMenu1[7] = new Array("L","a menu item","this is the last menu item","the URL of item 3");
  14.  
  15. var menu11 = new Array();
  16. menu11[0] = new Array("L","sub item 1","this is the first item in this sub menu","the URL of sub item 1");
  17. menu11[1] = new Array("S","","","");
  18. menu11[2] = new Array("L","sub item 2","this is the second item in this sub menu","the URL of sub item 2");
  19. menu11[3] = new Array("L","sub item 3","this is the last item in this sub menu","the URL of sub item 3");
  20.  
  21. var menu12 = new Array();
  22. menu12[0] = new Array("L","sub item 1","this is the first item in this sub menu","the URL of sub item 1");
  23. menu12[1] = new Array("L","sub item 2","this is the second item in this sub menu","the URL of sub item 2");
  24. menu12[2] = new Array("S","","","");
  25. menu12[3] = new Array("L","sub item 3","this is the last item in this sub menu","the URL of sub item 3");
  26.  
  27. var menu13 = new Array();
  28. menu13[0] = new Array("L","sub item 1","this is the first item in this sub menu","the URL of sub item 1");
  29. menu13[1] = new Array("L","sub item 2","this is the second item in this sub menu","the URL of sub item 2");
  30. menu13[2] = new Array("S","","","");
  31. menu13[3] = new Array("L","sub item 3","this is the last item in this sub menu","the URL of sub item 3");
  32.  
  33. var myMenu2 = new Array();
  34. myMenu2[0] = new Array("M","SUB MENU 1","this is the first sub menu","menu21");
  35. myMenu2[1] = new Array("M","SUB MENU 2","this is the second sub menu","menu22");
  36. myMenu2[2] = new Array("S","","","");
  37. myMenu2[3] = new Array("L","www.iname.com","this is the first menu item","http://www.iname.com");
  38. myMenu2[4] = new Array("L","www.operamail.com","this is the second menu item","http://www.operamail.com");
  39. myMenu2[5] = new Array("M","SUB MENU 3","this is the last sub menu","menu23");
  40. myMenu2[6] = new Array("S","","","");
  41. myMenu2[7] = new Array("L","A MENU ITEM","this is the last menu item","the URL of item 3");
  42.  
  43. var menu21 = new Array();
  44. menu21[0] = new Array("L","SUB ITEM 1","this is the first item in this sub menu","the URL of sub item 1");
  45. menu21[1] = new Array("S","","","");
  46. menu21[2] = new Array("L","SUB ITEM 2","this is the second item in this sub menu","the URL of sub item 2");
  47. menu21[3] = new Array("L","SUB ITEM 3","this is the last item in this sub menu","the URL of sub item 3");
  48.  
  49. var menu22 = new Array();
  50. menu22[0] = new Array("L","SUB ITEM 1","this is the first item in this sub menu","the URL of sub item 1");
  51. menu22[1] = new Array("L","SUB ITEM 2","this is the second item in this sub menu","the URL of sub item 2");
  52. menu22[2] = new Array("S","","","");
  53. menu22[3] = new Array("L","SUB ITEM 3","this is the last item in this sub menu","the URL of sub item 3");
  54.  
  55. var menu23 = new Array();
  56. menu23[0] = new Array("L","SUB ITEM 1","this is the first item in this sub menu","the URL of sub item 1");
  57. menu23[1] = new Array("L","SUB ITEM 2","this is the second item in this sub menu","the URL of sub item 2");
  58. menu23[2] = new Array("S","","","");
  59. menu23[3] = new Array("L","SUB ITEM 3","this is the last item in this sub menu","the URL of sub item 3");
  60.