Earthquake Effect Javascript

Earthquake Effect Javascript is a fun script that shakes the browser windows for a few seconds.

Features

  • Earthquake Effect is a fun javascript to grab visitor's attention.
  • Click on the "Earthquake" button to experience the script effect.
  • You may also use this script, at the time when user opens a website/webpage.

Preview

Click on the button to feel the shake.

Downloads

Javascript


<!-- Script by hscripts.com -->

<script language=javascript>

<!--
function quake()
{for (var i=0;i<=15;i++)
{shake(i);
}for (var i=15;i>=0;i--){shake(i); }
}
function shake(i)
{
window.moveBy(0,i);
window.moveBy(i,0);
window.moveBy(0,-i);
window.moveBy(-i,0);
}
function ctck()
{var sds = document.getElementById("dum");if(sds == null){
alert("You are using a free package.\n You are not allowed to remove the tag.\n");}var sdss = document.getElementById("dumdiv");if(sdss == null){alert("You are using a free package.\n You are not allowed to remove the tag.\n");
}
}
document.onload ="ctck()";
-->

</script>

<!-- Script by hscripts.com -->


HTML Code


<!-- Script by hscripts.com -->

<center><input type=button value=EarthQuake onClick=quake()></center>
<div style="font-size: 10px;color: #dadada;" id="dumdiv" align=center>

<a href="https://www.hscripts.com" id="dum" style="text-decoration:none;color: #dadada;">©h</a></div>

  • Release Date - 21-12-2010
  • Get free version without ©copyright link for just $10/-
  • For customization of this script or any script development, mail to support@hscripts.com

Usage

  • Here we have explained with steps format
  • Copy the javascript code into your file.
  • Earthquake on webpage script use Shake() function, to shake the webpage.
  • If you click on the button, webpage will shake for a few seconds.

License

Related Scripts

Free Javascript Scripts


Ask Questions

Ask Question