»
EnglishFrenchVietnamese

Print - Shaking Window - JavaScriptBank.com

Full version: jsB@nk » Browser » Shaking Window
URL: https://www.javascriptbank.com/shaking-window.html

Shaking Window © JavaScriptBank.comThis is a different script to shake browser window. This short JavaScript code will actually shake your browser window by using the moveBy() function, somewhat like a web browser earthquake! Not entirely useful, but neat anyways.

Full version: jsB@nk » Browser » Shaking Window
URL: https://www.javascriptbank.com/shaking-window.html



JavaScript
<SCRIPT>function shake(n) {if (self.moveBy){        for (i = 20; i > 0; i--) {                for (j = n; j > 0; j--) {                        self.moveBy(0,i);                        self.moveBy(i,0);                        self.moveBy(0,-i);                        self.moveBy(-i,0);            }        }       }       }shake(15);</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->