Other Sections
Bookmark to


DHTML analog clock II

Author: Erik Arvidsson | Homepage

Note: Questions regarding this script should be posted on the author's message board.

Description: This script harnesses the power of VML in IE 5 to create a live analog clock. VML, or Vector Graphics, is considered a subset of the DHTML technology, and allows developers to render and animate simple shapes and objects using code. In the below case, it probably also has the effect of rendering people speechless. Impressive script indeed.


Directions Developer's View

Step 1: Insert the below into the <HEAD> section of your page:

Select All

Step 2: Add the following to the <BODY> where you wish the clock to appear:

Select All

Both the size and color of the clock can be altered; please modify variable "clocksize" of Step 1 and color attribute of Step 2 to accomplish this, respectively.