Computer trivia

All I know about computers

&
 

Nov 13 2008

Browser shake

Published by rakshit at 10:01 pm under Browsers Edit This

Wanna have some browser shake?

What you are gonna read is some totally useless and fun stuff. This is a simple to trick that shakes the browser window rapidly and could be used to wake yourself when you feel sleepy in a class to fool your friends!

Open the browser window (works with any browser - Internet Explorer, Firefox etc) and paste the following code in the address bar (the place where the web page address is typed.

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) 

After pasting the above code hit “ENTER” and you will see the browser dancing. Observe the ‘i’ and ‘j’ values in the above code. Incrementing these values will shake your browser for more time. Note that the you cannot close or stop the shaking browser and thus using very high numbers for these variables may frustrate you rather than amusing you.

But if you want to tease some one, make the values as high as you please and start the shake!

Possibly-related Articles:                                        (auto-generated)

Comments RSS

Leave a Reply

You must be logged in to post a comment.
Not A Member? Register for Free!

Some Today.com contributors may have received a fee or a promotional product or service from a manufacturer for promotional consideration, while others receive no consideration at all. Each contributor is responsible for disclosing any such promotional consideration.