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.

51 lines
919 B

  1. <HTML>
  2. <HEAD>
  3. <!--
  4. Copyright (c) 2000 Microsoft Corporation
  5. -->
  6. <BODY>
  7. <OBJECT ID=idTB CLASSID="CLSID:FC7D9E08-3F9E-11d3-93C0-00C04F72DAF7" WIDTH=100% HEIGHT=30>
  8. <PARAM id=NoLoc1 name="Definition" value="toolbar.xml">
  9. </OBJECT>
  10. <BUTTON onClick="EnableButton1();" >Enable 1</BUTTON>&nbsp;
  11. <BUTTON onClick="DisableButton1();">Disable 1</BUTTON><BR>
  12. <BUTTON onClick="ShowButton2();" >Show 1</BUTTON>&nbsp;
  13. <BUTTON onClick="HideButton2();">Hide 1</BUTTON><BR>
  14. </BODY>
  15. <SCRIPT>
  16. function EnableButton1()
  17. {
  18. idTB.SetState( "BACK", true );
  19. }
  20. function DisableButton1()
  21. {
  22. idTB.SetState( "BACK", false );
  23. }
  24. function ShowButton2()
  25. {
  26. idTB.SetVisibility( "HOME", true );
  27. }
  28. function HideButton2()
  29. {
  30. idTB.SetVisibility( "HOME", false );
  31. }
  32. </SCRIPT>
  33. <SCRIPT LANGUAGE="JScript" EVENT="onCommand( tb, id )" FOR="idTB">
  34. alert(id);
  35. </SCRIPT>
  36. </HTML>