Shake the Screen

[Total: 0    Average: 0/5]

This will shake the window.

Head Code:

<script language="JavaScript"> 
<!-- 
function shakeScreen(n)
{ 
  var i,j; 
  if(top.moveBy)
  { 
    for(i=10; i>0; i--)
      for(j=n; j>0; j--)
	  {
        top.moveBy(0,i); 
        top.moveBy(i,0); 
        top.moveBy(0,-i); 
        top.moveBy(-i,0); 
      } 
  } 
} 
//--> 
</script> 

Body Code:

<form> 
Shake the screen<br> 
<input type="button" value="Click Here" onClick="return shakeScreen(10);">
</form> 

Times Viewed: 3

Leave a Reply

Your email address will not be published. Required fields are marked *