How to add a ticker to your web page
- Copy the files from the "applets\ticker" directory
to the directory that contains your web page.
- Add the following HTML code to your web page:
<APPLET code="ticker.class" width="296"
height="64">
<PARAM name="Text1" value="STRING:Welcome
to my page">
<PARAM name="Text2" value="STRING:Film at
11">
</APPLET>
- Change the text 'Welcome to my page' and 'Film at 11'
to whatever you like. Try changing them to 'Breaking News
'
and 'This is a Java Applet.'.
- Try adding more text strings. Add one new <PARAM
.>
line for each string. Each new Text param has a new number, for
example, Text3, Text4, Text5
. Try adding the following
line:
<PARAM name="Text3" value="STRING:Java is
cool!">
- Try changing the width of the applet. In the APPLET tag,
change the width to 350:
<APPLET code="ticker.class" width="350"
height="64">