[ Back to install ]

PlayerStats

Setting parameters

Parameters are used to give input to the applet. They can also be used to control the look and appearance of PlayerStats. The only parameter that has to be set is Datafile. All the others can be skipped. If a parameter is not set it will (sometimes) be given a default value.

1. Datafile

Description
The name of the file that contains the data about the matches (here is a description of the datafile). The filename is relative to the HTML-document.
Default
-
Example
<PARAM NAME=Datafile VALUE=myTeam.txt>
<PARAM NAME=Datafile VALUE=hockey/nhl/toronto.txt>
<PARAM NAME=Datafile VALUE=../../files/myData.txt>

2. Image

Description
The name of the image that is to be used as a background image. As with Datafile the name of the image file is relative to the HTML-document. The image format should be either GIF or JPEG.
Default
-
Example
<PARAM NAME=Image VALUE="myPic.gif">
<PARAM NAME=Image VALUE=pics/toronto.jpg>
<PARAM NAME=Image VALUE=../../files/bgpic.gif>

3. HideBorder

Description
Give the value True if you don't want a border drawn around the applet.
Default
False
Example
<PARAM NAME=HideBorder VALUE=True>

Color parameters

The following parameters can be used to change the colors of PlayerStats. Color values are specified in the same way as in HTML, i.e. in hexcode. It's important to know that these parameters can behave very differently on different platforms and with different browsers. So if you use these parameters it's important that you test the applet on a couple of different systems because what might look nice on your system might not look so nice on other systems.

4. BackgroundColor

Description
Sets the background color.
Default
White
Example
<PARAM NAME=BackgroundColor VALUE=1a34ef>

5. ForegroundColor

Description
Sets the foreground color. This is the color that controls (drop-down-boxes, radio buttons etc.) use.
Default
Black
Example
<PARAM NAME=ForegroundColor VALUE=1a34ef>

6. MenuColor

Description
The background color of the menu (the rectangle in the left part of the applet).
Default
Light gray
Example
<PARAM NAME=MenuColor VALUE=1a34ef>

7. MenuTextColor

Description
Sets the color of the text in the menu.
Default
Black
Example
<PARAM NAME=MenuTextColor VALUE=1a34ef>

8. LabelColor

Description
Sets the color that is used for headlines and labels.
Default
Black
Example
<PARAM NAME=LabelColor VALUE=1a34ef>

9. DataColor1

Description
This color is used for most of the data that is drawn on the screen.
Default
Blue
Example
<PARAM NAME=DataColor1 VALUE=1a34ef>

10. DataColor2

Description
At the moment this color is only used to draw the sorted column in Team - Players. It may be used in more places in the future.
Default
Red
Example
<PARAM NAME=DataColor2 VALUE=1a34ef>


[ Back to install ]
Copyright © 1998 Mats Bovin.
Comments can be sent to mats-bov@dsv.su.se