Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.5 KiB

  1. <html>
  2. <head>
  3. <script language="JScript" type="text/javascript">
  4. function window.onload(){
  5. var oXML, vValues, iValuesLen, oValue, sValue, sContent, sClass, oDoc, oTR, oTD, i;
  6. oXML = new ActiveXObject("Microsoft.XMLDOM");
  7. oXML.async = false;
  8. oXML.load("HSS_style.xml");
  9. vValues = oXML.selectNodes("//VALUE");
  10. iValuesLen = vValues.length;
  11. oDoc = document;
  12. for(i = 0; i < iValuesLen; i++){
  13. oValue = vValues[i];
  14. sValue = oValue.text;
  15. sContext = oValue.parentNode.nodeName;
  16. if(sContext == "CLASS"){
  17. sClass = oValue.parentNode.getAttribute("NAME");
  18. sContext = " "
  19. }else{
  20. sClass = oValue.parentNode.parentNode.getAttribute("NAME");
  21. }
  22. oTR = oDoc.createElement("tr");
  23. oTD = oDoc.createElement("td");
  24. oTD.innerText = sClass;
  25. oTR.appendChild(oTD);
  26. oTD = oDoc.createElement("td");
  27. oTD.innerText = sContext;
  28. oTR.appendChild(oTD);
  29. oTD = oDoc.createElement("td");
  30. oTD.innerText = sValue;
  31. oTR.appendChild(oTD);
  32. oTD = oDoc.createElement("td");
  33. oTD.innerText = " ";
  34. oTD.style.backgroundColor = sValue;
  35. oTR.appendChild(oTD);
  36. eTBody.appendChild(oTR);
  37. }
  38. }
  39. </script>
  40. <style type="text/css">
  41. table { table-layout: fixed; width: 500px; }
  42. td { font: messagebox; }
  43. </style>
  44. </head>
  45. <body>
  46. <table>
  47. <colgroup>
  48. <col width="200" />
  49. <col width="100" />
  50. <col width="100" />
  51. <col width="100" />
  52. </colgroup>
  53. <tbody id="eTBody"></tbody>
  54. </table>
  55. </body>
  56. </html>