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.

60 lines
1.9 KiB

  1. <PUBLIC:COMPONENT tagName="dev" XMLNS:dev>
  2. <?IMPORT namespace="dev" implementation="devinfo.htc">
  3. <PUBLIC:PROPERTY NAME="Expand" />
  4. <PUBLIC:PROPERTY NAME="Instance" />
  5. <PUBLIC:DEFAULTS viewLinkContent />
  6. <PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="Init()" />
  7. <SCRIPT LANGUAGE="VBScript">
  8. Dim normalColor
  9. Dim devcon
  10. Dim Inst
  11. Sub Hilite()
  12. normalColor = dev_title.runtimeStyle.color
  13. dev_title.runtimeStyle.color = "blue"
  14. End Sub
  15. Sub Restore()
  16. dev_title.runtimeStyle.color = normalColor
  17. End Sub
  18. Sub Init()
  19. Expand = false
  20. set fpClick = getRef("Click")
  21. set fpHilite = getRef("Hilite")
  22. set fpRestore = getRef("Restore")
  23. set DevCon = CreateObject("DevCon.DeviceConsole")
  24. set Inst = DevCon.DevicesByInstanceIds(Instance)(1)
  25. dev_bound.attachEvent "onclick", fpClick
  26. dev_bound.attachEvent "onmouseover", fpHilite
  27. dev_bound.attachEvent "onmouseout", fpRestore
  28. dev_title.innerHtml=element.innerHtml
  29. dev_icon.ObtainIcon Inst
  30. End Sub
  31. Function DevProps
  32. DevProps = "<br><dev:devinfo instance=""" & Instance & """ /></br>"
  33. End Function
  34. Sub Click()
  35. Expand = Not Expand
  36. If Expand Then
  37. dev_info.innerHtml = DevProps
  38. dev_info.style.display = ""
  39. dev_arrow.src = "arrow_down.gif"
  40. Else
  41. dev_info.style.display = "none"
  42. dev_arrow.src = "arrow_right.gif"
  43. End If
  44. End Sub
  45. </SCRIPT>
  46. <BODY>
  47. <SPAN id="dev_bound">
  48. <IMG align = "absmiddle" src="arrow_none.gif" width="25" height="15" />
  49. <IMG id="dev_arrow" align = "absmiddle" src="arrow_right.gif" width="25" height="15" />
  50. <object classid="clsid:514C3095-47E8-4B24-B831-FB1C22C1B1B6" id="dev_icon" width="16" height="16">
  51. </object>&nbsp;
  52. <SPAN id="dev_title"></SPAN>
  53. </SPAN>
  54. <SPAN id="dev_info"></SPAN>
  55. </BODY>
  56. </PUBLIC:COMPONENT>