Virtual earthquake
Created | Updated Mar 10, 2003
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function shake(n) {
if (self.moveBy) {
for (i = 15; i > 0; i--) {
for (j = n; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
}
// End -->
</script>
</head>
<BODY>
<font face=Arial>
For those of you who don't live in an eathquake zone, you can now experience
what it's like.
</font>
<p>
<form>
<input type=button onClick="shake(2)" value="Virtual Earthquake">
</form>
</body>
</html>