Window Earthquake Effect

Window EarthQuake Effect

<html>
<head>
<script>
function startEQ()
{
richter=5;
parent.moveBy(0,richter);
parent.moveBy(0,-richter);
parent.moveBy(richter,0);
parent.moveBy(-richter,0);
timer=setTimeout(“startEQ()”,10);
}function stopEQ()
{
clearTimeout(timer);
}</script>
</head>
<body>
<form>

<input onclick=”startEQ()” type=”button” value=”Start an earthquake”>
<br />
<br />
<input onclick=”stopEQ()” type=”button” value=”Stop the earthquake”>
</form>
</body>
</html>

OUTPUT:

DOWNLOAD SOLUTION HERE