Click to return to the HTML Help home page    
Working with ALinks     Create a table of content...     Creating help    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

Example: Create an ALink Using a Text Link


Microsoft Corporation

Updated June 10, 1999

  1. Click here to see a sample ALink text link.
  2. Open the HTML file in which you want to create an Associative link (ALink) as a text link.
  3. Click HTML Help ActiveX Control.

    HTML Help ActiveX Control

    Opens the HTML Help ActiveX Control Wizard, which enables you to insert or edit the control in an HTML file.

  4. In the Specify the command box, click ALink Search and, if you have already used the HTML Help ActiveX control in this file, enter an ID name for this instance of the control.
  5. Click Next, and then click Hidden to specify that you will be scripting this use of the HTML Help ActiveX control.
  6. Select the appropriate display type options, and then add the ALink names you want to jump to.
  7. Position the cursor at the location where you want to create the link, and then copy the following tag into your file:

    &ltA HREF="JavaScript:hhctrl2Click()"&gtadd link text here</A>

    In this example, hhctrl2 specifies 2 as the ID number for this instance of the HTML Help ActiveX control, which the ALink Search command should look for.
  8. Replace add link text here with the words you want to use.

Notes

 


Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.