VScrollerTypeWriter Applet Examples


A simple example

Your browser doesn't support java1.1 or java is not enabled!

This is the code used for the above applet:
<APPLET CODE=VScrollerTypeWriter.class WIDTH=400 HEIGHT=120>
<PARAM NAME="FileName" VALUE="message2.txt">
<PARAM NAME="Author" VALUE="George Elefheriou">
<PARAM NAME="Email" VALUE="gele@egnatia.ee.auth.gr">
Your browser doesn't support java1.1 or java is not enabled!
</APPLET>


This is the text in message2.txt:

<new>
Hello everyone.
Welcome to Vertical Scroller applet.
This is a simple example.
Default values are used.
Text color is white and bgcolor is black
<new>
This is another text
<new>
And this is another text


Another simple example

Your browser doesn't support java1.1 or java is not enabled!

This is the code used for the above applet:
<APPLET CODE=VScrollerTypeWriter.class WIDTH=400 HEIGHT=120>
<PARAM NAME="FileName" VALUE="message3.txt">
<param name="BorderLeft" value="10">
<PARAM NAME="Author" VALUE="George Elefheriou">
<PARAM NAME="Email" VALUE="gele@egnatia.ee.auth.gr">
Your browser doesn't support java1.1 or java is not enabled!
</APPLET>


This is the text in message3.txt:

<new>
<textcolor=0,0,255>
<fontsize=14>
This text is blue
and has fontsize 14 <new>
<textcolor=255,0,0>
<fontsize=16>
This text is red and
has fontsize 16
<new>
<fontstyle=italic>
<fontsize=20>
And this is another text
with fontstyle italic and
fontsize 20


Note 1: When you don't change the values, the text has the properties of the previous text. E.g. In the third new where we don't mention color, the text has the color of the previous text. The same applies for the other variables.

Note 2: If you don't want the text to start from the left edge of the applet you can use the BorderLeft parameter.

Note 3: It is a good practise to define all your values in the first new, and then change only the variables you want. The first values will be the default for the other text.


©Copyright 1998 by George Eleftheriou