home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 July / PCpro_2005_07.ISO / files / internet / JanaServer / JanaSetup.exe / admin / seiten_js / helpmenu.js < prev    next >
Encoding:
Text File  |  2005-03-25  |  3.6 KB  |  104 lines

  1. var IE  = (document.all);
  2. var DOM = (document.getElementById && !document.all);
  3.  
  4. var f2   = document.hilfe.unter;
  5. var hlps = document.hilfe.haupt.options.length;
  6. var hlp  = new Array(hlps);
  7.  
  8. for (i = 0; i < hlps; i++)
  9.     hlp[i] = new Array();
  10.  
  11. hlp[0][0] = new Option('', '    ' + txt[0][5]);
  12. hlp[0][1] = new Option('', '=======================');
  13. hlp[0][2] = new Option(pfad + '/general.htm', ' ╗ ' + txt[0][37]);
  14. hlp[0][3] = new Option(pfad + '/ipaddresses.htm', ' ╗ ' + txt[0][6]);
  15. hlp[0][4] = new Option(pfad + '/ports.htm', ' ╗ ' + txt[0][7]);
  16. hlp[0][5] = new Option(pfad + '/rasparameters.htm', ' ╗ ' + txt[0][8]);
  17. hlp[0][6] = new Option(pfad + '/extragate.htm', ' ╗ ' + txt[0][9]);
  18. hlp[0][7] = new Option(pfad + '/logfiles.htm', ' ╗ ' + txt[0][10]);
  19. hlp[0][8] = new Option(pfad + '/benutzer.htm', ' ╗ ' + txt[0][11]);
  20. hlp[0][9] = new Option('', '');
  21.  
  22. hlp[1][0] = new Option('', '    ' + txt[0][12]);
  23. hlp[1][1] = new Option('', '=======================');
  24. hlp[1][2] = new Option(pfad + '/proxy.htm', ' ╗ ' + txt[0][13]);
  25. hlp[1][3] = new Option(pfad + '/http.htm', ' ╗ ' + txt[0][14]);
  26. hlp[1][4] = new Option(pfad + '/ftp.htm', ' ╗ ' + txt[0][15]);
  27. hlp[1][5] = new Option(pfad + '/news.htm', ' ╗ ' + txt[0][16]);
  28. hlp[1][6] = new Option(pfad + '/sntp.htm', ' ╗ ' + txt[0][17]);
  29. hlp[1][7] = new Option(pfad + '/dns.htm', ' ╗ ' + txt[0][18]);
  30. hlp[1][8] = new Option(pfad + '/mimetypes.htm', ' ╗ ' + txt[0][19]);
  31. hlp[1][9] = new Option('', '');
  32.  
  33. hlp[2][0] = new Option('', '    ' + txt[0][20]);
  34. hlp[2][1] = new Option('', '=======================');
  35. hlp[2][2] = new Option(pfad + '/general_email.htm', ' ╗ ' + txt[0][37]);
  36. hlp[2][3] = new Option(pfad + '/pop3servers.htm', ' ╗ ' + txt[0][21]);
  37. hlp[2][4] = new Option(pfad + '/smtpservers.htm', ' ╗ ' + txt[0][22]);
  38. hlp[2][5] = new Option(pfad + '/users.htm', ' ╗ ' + txt[0][23]);
  39. hlp[2][6] = new Option(pfad + '/groups.htm', ' ╗ ' + txt[0][24]);
  40. hlp[2][7] = new Option(pfad + '/distribution.htm', ' ╗ ' + txt[0][25]);
  41. hlp[2][8] = new Option(pfad + '/rerouting.htm', ' ╗ ' + txt[0][26]);
  42. hlp[2][9] = new Option(pfad + '/bccsend.htm', ' ╗ ' + txt[0][27]);
  43. hlp[2][10] = new Option(pfad + '/bccreceive.htm', ' ╗ ' + txt[0][28]);
  44. hlp[2][11] = new Option(pfad + '/alias.htm', ' ╗ ' + txt[0][29]);
  45. hlp[2][12] = new Option('', '');
  46.  
  47. hlp[3][0] = new Option('', '    ' + txt[0][30]);
  48. hlp[3][1] = new Option('', '=======================');
  49. hlp[3][2] = new Option(pfad + '/intro.htm', ' ╗ .htaccess - ' + txt[0][31]);
  50. hlp[3][3] = new Option(pfad + '/inhalt.htm', ' ╗ .htaccess - ' + txt[0][32]);
  51. hlp[3][4] = new Option('', '');
  52.  
  53. hlp[4][0] = new Option('', '    ' + txt[0][33]);
  54. hlp[4][1] = new Option('', '=======================');
  55. hlp[4][2] = new Option(pfad + '/applets.htm', ' ╗ ' + txt[0][34]);
  56. hlp[4][3] = new Option('', '');
  57.  
  58. /**/
  59.  
  60. function redi(x)
  61. {
  62.     for (m = f2.options.length - 1; m > 0; m--)
  63.         f2.options[m] = null;
  64.  
  65.     for (i = 0; i < hlp[x].length; i++)
  66.         f2.options[i] = new Option(hlp[x][i].value, hlp[x][i].text);
  67. }
  68.  
  69. /**/
  70.  
  71. function surf(form)
  72. {
  73.     var sel = f2.selectedIndex;
  74.  
  75.     if (f2.options[sel].value != '')
  76.         parent.helphaupt.location.replace(f2.options[sel].value);
  77. }
  78.  
  79. /**/
  80.  
  81. function menue(a, b)
  82. {
  83.     document.hilfe.haupt.options[a].selected = true;
  84.     redi(a);
  85.     document.hilfe.unter.options[b].selected = true;
  86.     farb();
  87. }
  88.  
  89. /**/
  90.  
  91. function farb()
  92. {
  93.     if (IE)
  94.     {
  95.         document.all.hilfe.unter.tags('option')[0].style.color = akt;
  96.         document.all.hilfe.unter.tags('option')[1].style.color = akt;
  97.     }
  98.  
  99.     if (DOM || IE)
  100.     {
  101.         document.hilfe.unter.getElementsByTagName('option')[0].style.color = akt;
  102.         document.hilfe.unter.getElementsByTagName('option')[1].style.color = akt;
  103.     }
  104. }