Step 1 is to download the BeanCounter.class
file to the same directory as your HTML file. Step 2 is to add the following to your HTML text: <applet code="BeanCounter.class" width=250 height=34> </applet> |
To make it count up or down, add the increment
parameter: <applet code="BeanCounter.class" width=250 height=34> <param name="increment" value="1 0:0:0:1"> </applet> |
To make the countdown start at a specific value, add the startvalue
parameter. <applet code="BeanCounter.class" width=250 height=34> <param name="increment" value="1 0:0:0:1"> <param name="startvalue" value="5000"> </applet> |
To make the countdown start from a specific date, add the startdate
parameter. <applet code="BeanCounter.class" width=250 height=34> <param name="increment" value="1 0:0:0:1"> <param name="startvalue" value="5000"> <param name="startdate" value="1 jan 1996 12:00:00 GMT"> </applet> |
To add a decimal point, add the decimals
parameter. <applet code="BeanCounter.class" width=250 height=34> <param name="increment" value="1 0:0:0:1"> <param name="startvalue" value="5000"> <param name="startdate" value="1 jan 1996 12:00:00 GMT"> <param name="decimals" value="2"> </applet> |
To change the presentation, add the textcolor,
bgcolor,
bordercolor,
border
and font
parameters: <applet code="BeanCounter.class" width=250 height=34> <param name="increment" value="1 0:0:0:1"> <param name="startdate" value="1 jan 1996 12:00:00 GMT"> <param name="textcolor" value="00FF00"> <param name="bgcolor" value="000000"> <param name="bordercolor" value="0099CC"> <param name="border" value="6,bevel"> <param name="font" value="Helv,bold,20"> </applet> |
To use a graphical font, add the imagefont
parameter. The textcolor and font parameters have no effect
when an image font is used and can be removed. See the font gallery
for a selection of image fonts. <applet code="BeanCounter.class" width=300 height=44> <param name="increment" value="1 0:0:0:1"> <param name="startdate" value="1 jan 1996 12:00:00 GMT"> <param name="bgcolor" value="000000"> <param name="bordercolor" value="0099CC"> <param name="border" value="6,bevel"> <param name="imagefont" value="7segSmallRed.gif"> </applet> |
Use the background
parameter to display an image in the applet. Remove the bgcolor
parameter to allow the image to show through behind the numbers.
<applet code="BeanCounter.class" width=227 height=144> <param name="increment" value="1 0:0:0:1"> <param name="startvalue" value="8000"> <param name="bordercolor" value="0099CC"> <param name="border" value="6,bevel"> <param name="imagefont" value="7segSmallRed.gif"> <param name="background" value="background.jpg, 43,64,132,43"> </applet> |