ET Subject Ticker - Example

Next example

The applet area is divided into two parts, the subject area and the headline area. You can control the size of the subject area (and the headline area) using the SubjectWidth parameter.

In the first applet above, the subject area is set to half the applet area. It is also possible to eliminate one area by setting the SubjectWidth parameter to 0 or to the applet width, as can be seen in the second and third applet above.

First applet:

<applet code="ET_SubjectTicker.class" width="450" height="22">

<!--The file where the messages can be found.-->
<param name="InputFile" value="Input1.txt">

<!--The width of the subject part of the applet.-->
<!--225 pixels = half the applet area.-->
<param name="SubjectWidth" value="225">

</applet>

Second applet:

<applet code="ET_SubjectTicker.class" width="450" height="22">

<!--The file where the messages can be found.-->
<param name="InputFile" value="Input2.txt">

<!--The width of the subject part of the applet.-->
<!--450 pixels = the whole applet area, headline part not visible.-->
<param name="SubjectWidth" value="450">

</applet>

Third applet:

<applet code="ET_SubjectTicker.class" width="450" height="22">

<!--The file where the messages can be found.-->
<param name="InputFile" value="Input3.txt">

<!--The width of the subject part of the applet.-->
<!--0 pixels = subject part not visible.-->
<param name="SubjectWidth" value="0">

</applet>

The source shown above is not exactly the same as for the example, as it assumes that the class files are in the same directory as the html file. The source above also assumes an unregistered applet as it does not have the NumericalKey parameter (this removes the intro text in the applet).


© 1997-2000 Entanke. Visit us at http://www.entanke.se/ for more information.