Source code of Windows XP (NT5)
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.

47 lines
1.6 KiB

  1. <HTML>
  2. <HEAD>
  3. <TITLE>HHCtrl</TITLE>
  4. </HEAD>
  5. <BODY>
  6. <P>Clicking <A HREF=JavaScript:HHCtrl2.Click()>here</A> will call the Click method in HHCtrl which
  7. in turn fires a Click event that's handled by the hander for the Click event. That function displays a message box.</P>
  8. Clicking <A HREF=JavaScript:HHCtrl1.Print()>here</A> will call the Print method in HHCtrl.<P>
  9. <SCRIPT LANGUAGE="JavaScript" FOR="HHCtrl1" EVENT="Click(ParamString)">
  10. <!--
  11. alert("The string passed from HHCtrl is \"" + ParamString + ".\"");
  12. -->
  13. </SCRIPT>
  14. <SCRIPT LANGUAGE="JavaScript" FOR="HHCtrl2" EVENT="Click(ParamString)">
  15. <!--
  16. alert("You clicked?");
  17. -->
  18. </SCRIPT>
  19. <OBJECT id=HHCtrl1 type="application/x-oleobject"
  20. classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
  21. width=25%
  22. height=25%>
  23. <PARAM name="Command" value="Contents">
  24. <PARAM name="Item1" value="html/toc.hhc">
  25. </OBJECT>
  26. <P>This button performs the same action as the link above.</P>
  27. <OBJECT ID="HHCtrl2" WIDTH=12 HEIGHT=12 type="application/x-oleobject" HSPACE=4
  28. CLASSID="CLSID:adb880a6-d8ff-11cf-9377-00aa003b7a11">
  29. <PARAM NAME="Command" VALUE="Related Topics, MENU">
  30. <PARAM NAME="Button" VALUE="">
  31. <PARAM NAME="Item1" VALUE="Related Topics examples;..\topcs\related.htm">
  32. <PARAM NAME="Item2" VALUE="Shortcut example;..\topics\shortcut.htm">
  33. <PARAM NAME="Item3" VALUE="Splash examples;..\topics\splash.htm">
  34. <PARAM NAME="Item4" VALUE="Text and Animation examples;..\topics\static.htm">
  35. <PARAM NAME="Item5" VALUE="WinHelp examples;..\topics\winhelp.htm">
  36. </OBJECT>
  37. </BODY>
  38. </HTML>