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 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--) {
// End -->
type=button onClick="shake(2)" value="Shake Screen">

Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

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