Script Categories













Background Effects >>> Shake Screen.

California has earthquakes, and so does JavaScript ! This short JavaScript code will actually shake your browser window by using the moveBy() function, somewhat like a web browser earthquake!

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function shake(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
         }
      }
   }
}
// End -->
</script>
<center>
<form>
<input
type=button onClick="shake(2)" value="Shake Screen">
</form>
</center>

Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).
Taobao

[an error occurred while processing this directive]


komiku baca komik gratis online


©