The Windows operating system provides a number of unique opportunities to users to play a trick on unsuspecting friends. One of the most popular tricks, or rather visual illusions, that some people play is called the desktop earthquake trick. This can easily be executed with the help of a simple JavaScript script as shown in the following code snippet:
Also Read: Locking The Toolbars
<?xml version="1.0"
encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3c.org/TR/xhtmll/DTD/xhtmall-transitional.dtd">
<html>
<head>
<title>Earthquake Simulation</title>
<script language="javascript"
type="text/javascript">
<!-
function Quake(time)
{
if(self.moveBy)
{
for(var
side=25;side>0;side=side-1)
{
for(vartmp=time;tmp>0;tmp-1)
{
self.moveBy(0,side);
self.moveBy(side,0);
self.moveBy(0,-side);
self.moveBy(-side,0);
}
}
}
}
//->
</script>
</head>
<body>
<form><input type="button"
value="Simulate Earthquake Trick" onclick="Quake(20);"/></form>
</body>
.jpg)
Post a Comment Blogger Facebook