5/17/11

How to Embed ActiveX Components

An ActiveX control is a separate file you embed into your Web pages. Embedding an ActiveX control involves the "object" HTML tag. These tags let you insert any ActiveX object into your pages. The information in these tags is dependent on the ActiveX objects you want to install, but the format for the HTML tags and how to insert them are standard.
    • 1

      Right click the HTML file you want to edit and select "Open With." Double click the "Notepad" icon to open your HTML file in a text editor. You can also choose a third party application you have installed on your computer.

    • 2

      Scroll down the HTML page to the point where you want to insert the ActiveX control. Insert the following code into the file. In this example, the "Microsoft HTML Help" ActiveX control is inserted.

      <object id="mycontrol" type="application/x-oleobject"></object>

    • 3

      Add the Class ID. The Class ID is a unique number that identifies the ActiveX control on the user's computer. The Class ID is provided by the ActiveX control developer. For instance, to add the ID for the "Microsoft HTML Help" control, add the following ID:

      <object id="mycontrol" type="application/x-oleobject" classid="clsid:52a2aaae-085d-4187-97ea-8c30db990436"></object>

    • 4

      Click the "File" menu item and then click "Save." To test the new code, double click the HTML file to view the page content.

  • No comments: