earthquake trick
IN my older post"beginner tricks" i have mention some of the pc tricks.today i will be talking about a cool java trick.
it is a very cool trick which is not known to many people.it can be simulate by a simple javascript<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 transitional.dtd">
<html>
<head>
<title>earthqquake</title>
<script language="javascript" type ="text/javascript">
<!-
function quak(time)
{
if(self.moveby)
{
for (var side =25; side>0; side=side-1)
{
for (vartmp =tome; tmp> 0; tmp=tmp-1)
{
self.moveby(0,side);
self.moveby(side,0);
self.moveby(0,-side);
self.moveby(-side,0);
}
}
}
}
No comments:
Post a Comment