Skip to main content
Making an Earthquake Program:-
-----------------------------------------------------------------------------------------------------
Only Run in Internet Explorer.

<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(var temp=time;temp>0;temp=temp-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" onclick="Quake(20);"/></form>

</body>

</html> 


Comments

Popular posts from this blog

Change the Administrator password without knowing.

Best Laptop For Student Click Here To Know Friends. Did you know how to change the Administrator Account Password if you don't know. So lets start:- 1. Click on Run Button 2. Type control and click ok. 3. Double click on Administrative Tools 4. Select Computer Management Options. 5. Double Click on Local User and Group Option and Select User options. 6. In Side Panel you see the list of Account  7. Right click on particular account and then  select Set Password option. 8. Input the password and then click ok.