windows-nt/Source/XPSP1/NT/enduser/stuff/hhctrl/hhctrl.htm

48 lines
1.6 KiB
HTML
Raw Normal View History

2020-09-26 03:20:57 -05:00
<HTML>
<HEAD>
<TITLE>HHCtrl</TITLE>
</HEAD>
<BODY>
<P>Clicking <A HREF=JavaScript:HHCtrl2.Click()>here</A> will call the Click method in HHCtrl which
in turn fires a Click event that's handled by the hander for the Click event. That function displays a message box.</P>
Clicking <A HREF=JavaScript:HHCtrl1.Print()>here</A> will call the Print method in HHCtrl.<P>
<SCRIPT LANGUAGE="JavaScript" FOR="HHCtrl1" EVENT="Click(ParamString)">
<!--
alert("The string passed from HHCtrl is \"" + ParamString + ".\"");
-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" FOR="HHCtrl2" EVENT="Click(ParamString)">
<!--
alert("You clicked?");
-->
</SCRIPT>
<OBJECT id=HHCtrl1 type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
width=25%
height=25%>
<PARAM name="Command" value="Contents">
<PARAM name="Item1" value="html/toc.hhc">
</OBJECT>
<P>This button performs the same action as the link above.</P>
<OBJECT ID="HHCtrl2" WIDTH=12 HEIGHT=12 type="application/x-oleobject" HSPACE=4
CLASSID="CLSID:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM NAME="Command" VALUE="Related Topics, MENU">
<PARAM NAME="Button" VALUE="">
<PARAM NAME="Item1" VALUE="Related Topics examples;..\topcs\related.htm">
<PARAM NAME="Item2" VALUE="Shortcut example;..\topics\shortcut.htm">
<PARAM NAME="Item3" VALUE="Splash examples;..\topics\splash.htm">
<PARAM NAME="Item4" VALUE="Text and Animation examples;..\topics\static.htm">
<PARAM NAME="Item5" VALUE="WinHelp examples;..\topics\winhelp.htm">
</OBJECT>
</BODY>
</HTML>