Log-Scale Clock

Instructions

There are only two controls for this clock.

Clicking and dragging on the outer rim of the clock allows you to dial the offset of the log-scale from midnight. The position is displayed while dragging in hours and minutes. The clock above has the offset positioned at 5:00.

Clicking on the centre of the clock will cycle through the four types of log-scale: normal, inverse, mirror and inverse mirror and back to normal. Using normal (as above) the clock's hands will slow down when approaching the dialed time. With inverse the movement will instead speed up. With mirror type selected the hands will slow down when approaching the log offset as in normal type, and then steadily accelerate again as they pass it as with the inverse type. Inverse mirror simply switches the scale so that the hands are moving at there maximum speed when they reach the log offset.

The clock always runs on your system's local time unless set by the server (see below).

Embedding

This is the HTML for embedding the clock:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="400">
<param name="movie" value="flashfiles/logclock.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<param name="wmode" value="transparent">
<embed wmode="transparent" src="flashfiles/logclock.swf" quality="high" bgcolor="#ffffff" width="478" height="478" name="binclock" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>

You should upload the clock's SWF file to your server and change the paths to the file accordingly.

There are three flashvars for use when including the clock in web pages.

logOffset
This is the offset position of the log-scale described as a 12 hour time. The value 6:00 will shift the start point of the log-scale to the bottom of the clock face.
startTime
This is the 12 hour time that the clock will start with and allows you to server the clock with a time set by your server rather than using the local time of your visitor. The time should be in the format HH:MM:SS.
logType
There are four log types selected from 0 to 3. 0 is normal decelerating movement, 1 is inverse accelerating movement, 2 is mirror scale with both deceleration and acceleration around the log offset, and 3 is the inverse of 2 with the points of maximum and minimum speed switched.

To use these variables they should be added to the above code as both a param value and as an attribute in the embed tag in the form settingName=value. All three settings can be included by separating them with an '&'.

<param name="FlashVars" value="logOffset=5:00&startTime=12:00:00&logType=2">

<embed flashvars="logOffset=5:00&startTime=12:00:00&logType=2" [...]></embed>

You may link to the file on this server if you really must, just remember that means I get to decide what your visitors see.