|
Scoreboard
***********
Score Board
***********
by John Morris
1. Create a text file containing
all the display text and configuration
details for the applet. The following
is a list of parameters that can be
configured:
Name Value
---- -----
speed 0-5
background any valid RGB color
foreground any valid RGB color
effect left,right,up,down,
horizontal,vertical,
blink,twinkle
To set a parameter insert a line into
the text file in this form:
Name=Value
replacing 'Name' with the names above
and 'Value' with the corresponding value.
If you need help look at the "scoreboard.txt"
file included with this where there are
examples of everything.
2. Insert the following html into the html
of the page on which you want Score Board
to appear:
<applet width="420" height="45" code="ScoreBoard.class">
<param name="Created by John Morris - www.javaplayground.com" value="void">
<param name="file" value="scoreboard.txt">
</applet>
You can set the width to whatever you want
but the height must be 45. The author param
tag MUST be included for the applet to work
and MUST look exactly as it does above. The
value of the file param tag is path and
name of the text file from (1). It must
be relative to the ScoreBoard.class file (the
easiest thing to do is place the text file
in the same folder as ScoreBoard.class and
just set the value of the file param tag
to the name of the text file, including the
extension).
3. Place 'ScoreBoard.class' and the text file
into the folder as the html file which will
be using Score Board and open the html file
with your browser to test.
Back to the Scoreboard applet page.
|
New on the Java Boutique:
New Article:
Servlets and JSP
In addition to applets, applications, servlets, and articles, we are now accepting submissions of JSP snippets! If you have a piece of JSP code that you think would be useful to others, then send it in!
... [Submissions]
New Tutorial:
Introduction to Java Part 6:
Building Your First Application
Selena Sol goes through all the Java code and HTML necessary to create a java application.
... [more Tutorials]
Year in Review:
The Best of 1999
Y2K has come and gone and now we have a chance to look back over the past year.
In 1999 we posted over 250 applets, servlets, applications, and tools.
In this list are the 24 most popular apps from 1999.
... [popular applets]
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
100s of free Java code files to download.
Copyright 1999-2000 internet.com Corp.
All Rights Reserved. Legal Notices.
|