H a w k s l e y C l o c k



Your browser does not support Java applets - sorry!
new york

Your browser does not support Java applets - sorry!
rio de janeiro

Your browser does not support Java applets - sorry!
böblingen

Your browser does not support Java applets - sorry!
moscow


~ the perfect addition to any homepage ~

How to put the clock on your page

1: Local Copy

Download the two Java class files below. Use a normal <applet> tag to specify the size and options of the applet. The colour of the clock can be completely controlled using <param> tags - see below. You do not need the source code to run the applet. Don't change the names of the downloaded class files.

HawksleyClock.class HawksleyClockState.class

source:

HawksleyClock.java HawksleyClockState.java

Applet open tag:

<applet 
   code="HawksleyClock.class"
   codebase="http://www.yourserver.com/directory_with_classes_in/"
   align="middle" 
   width="128" 
   height="128" >

2: Use My Version

You don't need to download anything to use the version I maintain. Simply specify my server as the codebase:

<applet 
   code="HawksleyClock.class"
   codebase="http://www.hawksley.net/classes/"
   align="middle" 
   width="128" 
   height="128" >

How to Configure the Applet

The following <PARAM> options are available. Just specify them inside the Applet tag as normal Applet parameters
( <PARAM name="somename" value="somevalue"> )

Parameter Name

Description

division_color

#aabbcc color specifier
The colour in which the hour dividers will be drawn.

hour_color

#aabbcc color specifier
The colour in which the hour hand is drawn

minute_color

#aabbcc color specifier
The colour in which the minute hand is drawn
second_color #aabbcc color specifier
Guess. :-)
bg_color #aabbcc color specifier
The applet will be drawn with this background color
tz Timezone
You can try to put a 3-letter timezone in here. If the applet doesn't start, Java didn't recognise your timezone
hour_offset Number
This number will be added or subtracted from the local hour
minute_offset Number
This number will be added or subtracted from the local mnute

Help - Java doesn't know my timezone!

If Java can't find your timezone (applet remains gray), put in UTC and your hour offset. E.g. New York (Eastern Standard Time - EST):

tz = "UTC"
hour_offset = "-5"


Let me know if you liked or used it!

I'd love to know if you liked or found a use for the clock. Drop me a line!

john_hawksley@yahoo.com