// Clock plus rotating text
DCOL = 'CC0000'; // Date Colour.
Fcol = '0099ff'; // face color.
Scol = 'ff0000'; // Seconds Colour.
Mcol = '0099ff'; // minutes colour.
Hcol = '0099ff'; // Hours colour.
Clockheight = 40;
ClockWidth = 40;
ClockFromMousey = 0;
ClockFromMousex = 100;
// ALTER NOTHING BELOW! Alignments Will Be Lost!
D = New Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "SaturDay");
M = New Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", " December ");
Date = new date ();
Day = date.getdate ();
Year = Date.getYear ();
IF (Year <2000) Year = YEAR 1900;
Todaysdate = "" D [Date.getDay ()] " day " m [Date.getMonth ()] "" year;
D = TodaySdate.split ('');
H = '...';
H = H.SPLIT ('');
M = '....';
M = m.split ('');
S = '.....';
S = s.Split ('');
Face = '1 2 3 4 5 6 7 8 9 10 11 12';
Font = 'Taoma';
SIZE = 1;
SPEED = 0.6;
NS = (Document.Layers);
IE = (Document.all);
Face = face.split ('');
n = face.length;
a = size * 10;
YMOUSE = 0;
XMouse = 0;
SCRLL = 0;
PROPS = "";
PROPS2 = ""; split = 360 / n;
DSPLIT = 360 / D.LENGTH;
Handheight = ClockHeight / 4.5
HANDWIDTH = Clockwidth / 4.5
Handy = -7;
HANDX = -2.5;
SCRLL = 0;
Step = 0.06;
Currstep = 0;
y = new array (); x = new array (); y = new array (); x = new arch ();
For (i = 0; i DY = new array (); dx = new array (); DY = new array (); dx = new arch (); For (i = 0; i IF (ns) { For (i = 0; i Document.write (' For (i = 0; i Document.write (' For (i = 0; i Document.write (' For (i = 0; i Document.write (' Document.write (' } IF (ie) { Document.write (' For (i = 0; i Document.write (' For (i = 0; i Document.write (' Document.write (' Document.write (' div> div>); Document.write (' For (i = 0; i Document.write (' Document.write (' div> div>) Document.write (' For (i = 0; i Document.write (' Document.write (' div> div>) } (ns)? Window.captureevents (Event.Mousemove): 0; Function mouse (evnt) { YMOUSE = (ns)? evnt.pagey clockfrommounty- (window.pageyoffset): Event.y clockfrommounty; XMouse = (ns)? evnt.pagex clockfrommousex: Event.x ClockFromMousex;} (ns)? Window.onmousemove = mouse: Document.οnmοusemοve = mouse; Function clockAnsign () { Time = new Date (); SECS = Time.getSeconds (); SEC = -1.57 math.pi * secs / 30; Mins = time.getminutes (); min = -1.57 math.pi * mins / 30; HR = Time.GetHours (); HRS = -1.575 math.pi * hr / 6 math.pi * parseint (time.getminutes ()) / 360; if (ie) { Od.style.top = window.document.body.scrolltop; Of.style.top = window.document.body.scrolltop; Oh.style.top = window.document.body.scrolltop; Om.Style.top = Window.Document.body.scrolltop; Os.style.top = window.document.body.scrolltop; } For (i = 0; i VAR f = (ns)? Document.Layers ['nsface' i]: IEFACE [i] .style; F.TOP = y [i] clockheight * math.sin (-1.0471 i * split * math.pi / 180) SCRLL; F.LEFT = X [i] clockwidth * math.cos (-1.0471 i * split * math.pi / 180); } For (i = 0; i VAR HL = (NS)? Document.Layers ['NSHOURS' I]: IEHOURS [i] .style; HL.top = y [i] handy (i * handheight) * Math.sin (HRS) SCRLL; HL.LEFT = X [I] HANDX (i * Handwidth) * Math.cos (HRS); } For (i = 0; i VAR ml = (ns)? Document.Layers ['nsminutes' i]: IEMINUTES [i] .style; Ml.top = y [i] handy (i * handheight) * Math.sin SCRLL; Ml.left = x [i] handx (i * handwidth) * Math.cos (min); } For (i = 0; i VAR SL = (NS)? Document.Layers ['NSSeconds' I]: IESECONDS [i] .style; Sl.top = y [i] handy (i * handheight) * math.sin (sec) scroll; Sl.left = x [i] handx (i * handwidth) * Math.cos (SEC); For (i = 0; i VAR DL = (NS)? Document.Layers ['NSDATE' I]: IEDATE [I] .style; Dl.top = DY [I] clockheight * 1.5 * Math.sin (Currstep i * dsplit * math.pi / 180) SCRLL; DL.LEFT = DX [i] clockwidth * 1.5 * Math.cos (Currstep i * dsplit * math.pi / 180); } Currstep- = step; } Function delay () { Scrll = (ns)? Window.pageyoffset: 0; DY [0] = math.round (DY [0] = ((YMOUSE) -Dy [0]) * speed); DX [0] = Math.Round (DX [0] = (xMouse) -dx [0]) * speed); For (i = 1; i DY [i] = math.Round (DY [i] = (DY [I-1] -dy [i]) * speed); DX [i] = math.Round (DX [i] = (DX [i-1] -dx [i]) * speed); } y [0] = Math.Round (y [0] = ((YMOUSE) -Y [0]) * Speed); X [0] = Math.Round (x [0] = ((xMouse) -X [0]) * speed); For (i = 1; i Y [i] = math.Round (y [i] = (y [i-1] -y [i]) * speed); X [i] = math.Round (x [i] = (x [i-1] -x [i]) * speed); } ClockAnsign (); SetTimeout ('delay ()', 20); } IF (ns || ie) window.οnlοad = delay; Script> // Raining effect