CountDownClock Applet Owner's Manual
====================================
Original Document found at
http://www.cargobay.com/clockshop/showroom/countdown.html
The complete Package includes the following files:
1. the Owner's manual
CountDownClock.txt -- this file
2. the 1 program jar file
CountDownClock.jar
Insides the jar file are the following class files:
-- CountDownClock.class
-- ColorValue.class
-- Rect.class
-- RectFrame.class
To install:
1. Make sure you have downloaded the jar file in binary mode.
2. put the jar file into a subdirectory anywhere in your
web document tree. For example:
http://www.mysite.com/applets/clock/
3. Add the <APPLET> tag to the HTML page on which you wish to have
the clock running. Make sure the value for CODEBASE is
specified correctly.
4. Done.
Sample Applet Tag and description:
<APPLET
CODEBASE="http://www.mysite.com/applets/clock/"
CODE="CountDownClock.class" WIDTH=140 HEIGHT=45>
<param name=Author Value="Java Clockshop">
<param name=DateTime Value="2000,1,1,0,0,0">
<param name=TimeZone Value="PST">
<param name=StopWhenTimeUp Value="true">
<param name=ForegroundColor value="#000099">
<param name=BackgroundColor value="99cccc">
<param name=FontName value="Dialog">
<param name=FontStyle value="bold">
<param name=FontSize value=14>
<param name=ShowFrame value="no">
<param name=OutBevel value=2>
<param name=OutBevelStyle value="raised">
<param name=InBevel value=2>
<param name=InBevelStyle value="etchedout">
<param name=FrameThickness value=4>
<param name=FrameStyle value="normal">
<param name=FrameColor value="#99cccc">
</APPLET>
Description of the applet parameters:
CODEBASE
value: set to wherever you store the clock class files.
CODE="CountDownClock.class"
Do not change.
WIDTH
Default: none
Description: clock width
HEIGHT
Default: none
Description: clock height
Author
Value="Java ClockShop"
Description: do not change
DateTime
Value="year,month,day,hour,min,second"
Default: "2000,1,1,0,0,0"
Description: Specified the target date-time for the countdown.
All values should be integer.
Month=1-12
Day=1-31
Hour=0-23
Minute=0-59
Second=0-59
** Range of values are not checked.
If the specified target date-time is in the past,the clock
will count up.
TimeZone
Value= n
Default: 'none' -- brower's local time
Description: Specify the TimeZone ID for the clock.
If an unrecognized TimeZone ID string is used, the default
will be set to GMT and no daylight saving time will be used.
For a list of recognized Java Time Zone ID values, please see
http://www.cargobay.com/clockshop/TimeZone.txt
StopWhenTimeUp
Value: true|yes
Default: true
Description: any value other than 'true' or 'yes' will be
treated as 'false'. If set to 'true', the countdown clock will
stop when the time reaches 0000:00:00:00. Otherwise, the clock
will wrap around and automatically continues counting up.
ForegroundColor
Value: black|blue|cyan|darkgray|gray
|green|lightGray|magenta|orange
|pink|red|white|yellow
or RGB values: rrggbb or #rrggbb
Default: black
Description: the color used for displaying the clock digits
BackgroundColor
Value: same as ForegroundColor
Default: lightGray
Description: the color used for clock background.
Tip: Set it to the background color of your document
to have the clock blend in better with your page.
FontName
Value: Helvetica|TimesRoman|Courier|Dialog|DialogInput ...
Default: TimesRoman
Description: the name of the font used to display the digits.
FontStyle
Value: plain | italic | bold | boldItalic
Default: plain
Description: the style of the font used to display the digits
FontSize
Value: a positive integer (minimum 3)
Default: 14
Description: the desired font point size for the digits.
ShowFrame:
Value: yes | no
Default: yes
Description: Set it to YES, if you want the clock to have a clock frame.
FrameStyle
VALUE= "normal" | "etchedin" | "etchedout" | "raised" | "inset"
Default: normal
Description: The style of the clock frame.
FrameThickness
VALUE=positive integer
Default=3
Description: Specify the thicknesss of the clock frame.
FrameColor
VALUE=same as ForegroundColor
Default=lightGray
Description: The color used to paint the clock frame.
OutBevel
VALUE=postive integer
Default=5
Description: Specify the thicknesss of the frame's outer bevel.
OutBevelStyle
VALUE=same as FrameStyle
Default: raised
Description: The style of the clock frame's outer bevel.
InBevel
VALUE=postive integer
Default=3
Description: Specify the thicknesss of the frame's inner bevel.
InBevelStyle
VALUE=same as FrameStyle
Default: inset
Description: The style of the clock frame's inner bevel.
"Current Time" DigitalClock Owner's Manual
==========================================
Original Document found at
http://www.cargobay.com/clockshop
The complete Package includes the following files:
1. the Owner's manual
DigitalClock.txt -- this file
2. the 6 program files
Clock.class
DigitalClock.class
ColorValue.class
Rect.class
RectFrame.class
Marquee.class
3. the 5 source files
Clock.java
DigitalClock.java
ColorValue.java
RectFrame.java
Marquee.java
To install:
1. Make sure you have all the class files.
2. put all class files into a subdictory anywhere
in your web document tree.
For example:
http://www.mysite.com/public_html/applets/clock/
4. Add the <APPLET> tag to the HTML page on which you wish to have
the digital clock running. Make sure the value for
CODEBASE is specified correctly.
5. Done.
Sample Applet Tag and description:
<APPLET
CODEBASE="http://www.mysite.com/applets/clock/"
CODE="DigitalClock.class" WIDTH=120 HEIGHT=50>
<param name=Author Value="hjtsai@cargobay.com">
<param name=DigitRadix value=10>
<param name=TimeZone value=-480>
<param name=Show24Hours value="yes">
<param name=ShowSeconds value="no">
<param name=ForegroundColor value="#000099">
<param name=BackgroundColor value="99cccc">
<param name=ClockFontName value="Dialog">
<param name=ClockFontStyle value="bold">
<param name=ClockFontSize value=14>
<param name=ShowFrame value="no">
<param name=OutBevel value=2>
<param name=OutBevelStyle value="raised">
<param name=InBevel value=2>
<param name=InBevelStyle value="etchedout">
<param name=FrameThickness value=4>
<param name=FrameStyle value="normal">
<param name=FrameColor value="#99cccc">
<param name=ShowDate value=yes>
<param name=DateFontName value="Helvetica">
<param name=DateFontSize value=10>
<param name=DateFontStyle value="Italic">
<param name=DateColor value="#ffcc00">
<param name=DatePosition value=1>
</APPLET>
Parameter descriptions
CODEBASE
value: set to wherever you store the clock class files.
CODE="DigitalClock.class"
Do not change.
WIDTH
Default: none
Description: clock width
HEIGHT
Default: none
Description: clock height
Author
VALUE= hjtsai@cargobay.com
Description: do not change
TimeZone
VALUE= n
Default: none
Description:
n = the difference from GMT in minutes
For example, to display California time regardless
where the client is running, set TimeZone=-480
If this value is not set, the client local time will
be displayed.
DigitRadix
VALUE= 2 | 3 | ... | 36
Default: 10
Description:
The radix used to display number.
For example, if it is set to 2, then DigitalClock
becomes a binary digital clock.
Show24Hours:
Value: yes | no
Defult: no
Description: Set it to YES if you want to show 1pm as 13:00.
ShowSeconds:
Value: yes | no
Defult: no
Description: Set it to YES if you want to show the seconds.
ForegroundColor
Value: black|blue|cyan|darkgray|gray
|green|lightGray|magenta|orange
|pink|red|white|yellow
or RGB values: rrggbb or #rrggbb
Default: black
Description: the color used for displaying the clock digits
BackgroundColor
Value: same as ForegroundColor
Default: lightGray
Description: the color used for clock background.
Tip: Set it to the background color of your
document to have the clock blend in better with your page.
ClockFontName
Value: Helvetica|TimesRoman|Courier|Dialog|DialogInput ...
Default: TimesRoman
Description: the name of the font used to display the digits.
ClockFontStyle
Value: plain | italic | bold | boldItalic
Default: plain
Description: the style of the font used to display the digits
ClockFontSize
Value: a positive integer (minimum 3)
Default: 14
Description: the desired font point size for the digits.
ShowFrame:
Value: yes | no
Default: yes
Description: Set it to YES, if you want the clock to have a clock frame.
FrameStyle
VALUE= "normal" | "etchedin" | "etchedout" | "raised" | "inset"
Default: normal
Description: The style of the clock frame.
FrameThickness
VALUE=positive integer
Default=3
Description: Specify the thicknesss of the clock frame.
FrameColor
VALUE=same as ForegroundColor
Default=lightGray
Description: The color used to paint the clock frame.
OutBevel
VALUE=postive integer
Default=5
Description: Specify the thicknesss of the frame's outer bevel.
OutBevelStyle
VALUE=same as FrameStyle
Default: raised
Description: The style of the clock frame's outer bevel.
InBevel
VALUE=postive integer
Default=3
Description: Specify the thicknesss of the frame's inner bevel.
InBevelStyle
VALUE=same as FrameStyle
Default: inset
Description: The style of the clock frame's inner bevel.
ShowDate:
Value: yes | no
Default: no
Description: Set it to YES, if you want the clock
to display today's date.
DateColor
Value: same as ForegroundColor
Default: ForegroundColor
Description: The color used to display the date string.
DatePosition
value: 1 | 2 | 3 | 4
1= date followed by time on the same line
2= time followed by date on he same line
3= time over date (2 separate lines)
4= date over time (2 separate lines)
Default: 1
Description: Decide where you want to display both the
date and time strings.
DateFontName
Value: Same as ClockFontName
Default: TimesRoman
Description: The name of the font used to display the date string.
DateFontStyle
Value: same as ClockFontStyle
Default: italic
Description: The style of the font used to display the date string.
DateFontSize
Value: positive integer
Default: 10
Description: The font size used to display the date string.