[ Back to install ]

HockeyStats

Setting parameters

Parameters are used to give input to the applet. They can also be used to control the look and appearance of HockeyStats. The only parameters that have to be set are Datafile and TeamName. 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. TeamName

Description
The name of the team.
Default
-
Example
<PARAM NAME=TeamName VALUE="Toronto">
<PARAM NAME=TeamName VALUE="NY Rangers">

3. LeagueName

Description
Gives the name of the league. (This parameter is actually not used in the current version but it may be used in future versions of HockeyStats).
Default
-
Example
<PARAM NAME=LeagueName VALUE="NHL">
<PARAM NAME=LeagueName VALUE="Elitserien">

4. Season

Description
Gives the season of the league. This is a string and it can be given in any format, for example: 1996-97, 96/97, 1997 etc. (This parameter is actually not used in the current version but it may be used in future versions of HockeyStats).
Default
-
Example
<PARAM NAME=Season VALUE="1996-97">
<PARAM NAME=Season VALUE="96/97">

New!5. Overtime

Description
Tells the applet that the league is using overtime when games are tied. If overtime is used an extra column will be shown in the Period section of the applet.
Default
False
Example
<PARAM NAME=Overtime VALUE=True>

New!6. ShotsIncludeGoals

Description
Decides if the shots given in the datafile are including or excluding the goals. If you set this parameter to true then the shots entered in the datafile should be including goals. If you set the parameter to false (or don't set it at all) the shots should be given excluding goals.
Default
False
Example
<PARAM NAME=ShotsIncludeGoals VALUE=True>

7. Image

Description
The name of the image that is to be used as a background image. As with Datafile the name of the imagefile 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>

8. ButtonPos

Description
With this parameter you can decide where to place the main buttons. Possible values are: TOP, BOTTOM, LEFT, RIGHT.
Default
LEFT
Example
<PARAM NAME=ButtonPos VALUE=TOP>
<PARAM NAME=ButtonPos VALUE=right>

9. 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 HockeyStats. 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. For instance, the ButtonCol and ButtonTextCol parameters don't work at all with version 3 and earlier of both Navigator and Internet Explorer on Win95. On those systems the buttons will always be gray. 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.

10. Backcol

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

11. Forecol

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

12. Primcol

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

13. Seccol

Description
Sets the secondary drawing color. This color is used for headlines and labels.
Default
Black
Example
<PARAM NAME=Seccol VALUE=1a34ef>

14. ButtonCol

Description
Sets the color of the main buttons.
Default
Light gray
Example
<PARAM NAME=ButtonCol VALUE=1a34ef>

15. ButtonTextCol

Description
Sets the color of the text in the main buttons.
Default
Black
Example
<PARAM NAME=ButtonTextCol VALUE=1a34ef>

16. ButtonSelectCol

Description
Sets the color of the rectangle that is drawn around the selected button.
Default
Blue
Example
<PARAM NAME=ButtonSelectCol VALUE=1a34ef>


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