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> |
<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
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> |
<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 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.