The Stock Ticker Control

The Stock Ticker control is an example of a vertical application control. (A vertical application is an application that is specific to one industry.) Although not useful for general purposes, the stock ticker represents a new generation of ActiveX controls that are targeted at specific niche groups on the web. Listing 4-6 shows the code used to implement a stock ticker in a web page. (Notice that the information displayed by the stock ticker is from a file on Microsoft's web site.) Figure 4-14 shows a sample of the output.

  <HTML>
<HEAD>
<TITLE>Stock Ticker Control</TITLE>
</HEAD>
<BODY>

<OBJECT
    CLASSID="clsid:0CA4A620-8E3D-11CF-A3A9-00A0C9034920"
    ID="Ticker" 
    WIDTH=300
    HEIGHT=50
    >
    <PARAM NAME="DataObjectName"
    VALUE="http://www.microsoft.com/workshop/activex/gallery/ms /ticker/other/iexrt.xrt">
    <PARAM NAME="DataObjectActive" VALUE="1">
    <PARAM NAME="ScrollWidth" VALUE="5">
    <PARAM NAME="ForeColor" VALUE="#FF0000">
    <PARAM NAME="BackColor" VALUE="#0000FF">
    <PARAM NAME="ReloadInterval" VALUE="5000">
</OBJECT>

</BODY>
</HTML> 

Listing 4-6.

The Stock Ticker control used in HTML code.

Figure 4-14.

Sample output of the Stock Ticker control.

© 1996 by Scot Hillier. All rights reserved.