something cool

I found this cool little mouse script somewhere… (the little weird clock thing)

I know it may be annoying, don’t worry, it’ll leave when this post is archived.

I think it only works in IE, doesn’t seem to work in FireFox

Download code

if (window.Event)document.captureEvents(Event.MOUSEUP);
function nocontextmenu() {
event.cancelBubble = true, event.returnValue = false;
return false;
}

function norightclick(e) {
if (window.Event) {
if (e.which == 2 || e.which == 3) return false;
}
else if (event.button == 2 || event.button == 3) {
event.cancelBubble = true, event.returnValue = false;return false;
}
}
//if (document.layers)
// document.captureEvents(Event.MOUSEDOWN);
// document.oncontextmenu = nocontextmenu;
// document.onmousedown = norightclick;
// document.onmouseup = norightclick;
//–>
AroundText=”I DREAM IN CODE DO YOU? “; // Remeber space at the end
dCol=’000000′;//date colour.
fCol=’000000′;//face colour.
sCol=’000000′;//seconds colour.
mCol=’000000′;//minutes colour.
hCol=’000000′;//hours colour.
ClockHeight=30;
ClockWidth=30;
ClockFromMouseY=100;
ClockFromMouseX=100; //Alter nothing below! Alignments will be lost!
D=AroundText.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=’Arial’;
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 Array();
for(i=0;i’+props2+D[i]+’
‘);
for (i=0; i ‘+props+Face[i]+’
‘);
for (i=0; i ‘+S[i]+’‘);
for (i=0; i ‘+M[i]+’‘);
for (i=0; i ‘+H[i]+’‘);
}
if (ie)
{
document.write(‘

‘);
for (i=0; i ‘+props2+D[i]+’

‘);
document.write(‘

‘);
document.write(‘

‘);
for (i=0; i ‘+props+Face[i]+’

‘);
document.write(‘

‘);
document.write(‘

‘);
for (i=0; i ‘+H[i]+’

‘);
document.write(‘