Try this out folks, a really stoopid trick to play but none-the-less.
Might break an old mouse too.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Can't catch me</title>
</head>
<script language="JavaScript1.2">
<!--
// Seismic window by Paul Anderson, copyright 1999 CNET, Inc.
var quakeID=0;
var deltaX=20;
var deltaY=20;
// determines how many pixels it jumps
// 20 is a good start
// 100 will send it AWOL, right off the screen but will reappear when you
don't expect it.
function tremor(dir) {
with(Math) return ceil(random()*20)*2*(floor(random()*2)-.5);
}
function winQuake() {
clearTimeout(quakeID);
for (i=0;i<=((Math.random()*35)+5);i++) {
xShift = tremor();
yShift = tremor();
window.moveBy(xShift,yShift);
deltaX -= xShift;
deltaY -= yShift;
}
//winReset();
//quakeID=.001;
//quakeID=setTimeout("winQuake()",Math.ceil(Math.random()*3500)+250);
quakeID=setTimeout("winQuake()",100);
}
function winReset() {
window.moveBy(deltaX,deltaY);
deltaX=0; deltaY=0;
}
window.onload=winQuake;
window.onunload=winReset;
//-->
</script>
<body>
<a href="javascript:if(window.winQuake)winQuake()">Shake it baby!!</a>
<br>
<br>
<br>
<br>
<br>
<a href="javascript:if(window.quakeID)clearTimeout(quakeID)">Alright that's
enough, I'm gonna' puke....</a>
</body>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists