Saturday 21 May 2011

Browser Shaking



This is a fun little trick that can create a shaking screen on your web browser .
Working in Internet Explorer, Mozilla Firefox .
The trick is simply a small JavaScript that causes your browser window to move to different positions, causing a shake of your entire screen. 
It's kind of cool to watch and see what JavaScript can do! Try it out..
Here's how: Copy this entire line and paste it onto your address box, then press Enter:


javascript:function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(6)







0 comments:

Post a Comment

Please do not spam

Related Posts Plugin for WordPress, Blogger...