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

  1. var theMenu = new Array();
  2. theMenu[0] = new Array("theMenu1");
  3. theMenu[1] = new Array("theMenu2");
  4.  
  5. var theMenu1 = new Array();
  6. theMenu1[0] = new Array("M","Sub Menu 1","Sub Menu 1","theMenu11");
  7. theMenu1[1] = new Array("M","Sub Menu 2","Sub Menu 2","theMenu12");
  8. theMenu1[2] = new Array("S","","","");
  9. theMenu1[3] = new Array("L","Link Item A","Link Item A","http://yx.webprovider.com");
  10. theMenu1[4] = new Array("S","","","");
  11. theMenu1[5] = new Array("I","Info Box I","This is a info box to show some messages.","100");
  12. theMenu1[6] = new Array("I","Info Box II","This is another info box to show some messages.","120");
  13.  
  14. var theMenu11 = new Array();
  15. theMenu11[0] = new Array("C","alert","alert some message","alert('This is a message.')");
  16. theMenu11[1] = new Array("C","window","open a new window","window.open()");
  17.  
  18. var theMenu12 = new Array();
  19. theMenu12[0] = new Array("C","alert","alert some message","alert('This is another message.')");
  20. theMenu12[1] = new Array("C","window","open a new window","window.open()");
  21.  
  22. var theMenu2 = new Array();
  23. theMenu2[0] = new Array("M","sUB mENU 1","sUB mENU 1","theMenu21");
  24. theMenu2[1] = new Array("M","Sub Menu 2","sUB mENU 2","theMenu22");
  25. theMenu2[2] = new Array("S","","","");
  26. theMenu2[3] = new Array("L","lINK iTEM a","lINK iTEM a","http://yx.webprovider.com");
  27. theMenu2[4] = new Array("S","","","");
  28. theMenu2[5] = new Array("I","iNFO bOX i","tHIS IS A INFO BOX TO SHOW SOME MESSAGES.","100");
  29.  
  30. var theMenu21 = new Array();
  31. theMenu21[0] = new Array("C","ALERT","ALERT SOME MESSAGE","alert('This is a message.')");
  32. theMenu21[1] = new Array("C","WINDOW","OPEN A NEW WINDOW","window.open()");
  33.  
  34. var theMenu22 = new Array();
  35. theMenu22[0] = new Array("C","ALERT","ALERT SOME MESSAGE","alert('This is another message.')");
  36. theMenu22[1] = new Array("C","WINDOW","Open A New Window","window.open()");
  37.