TECH TIPS Headline Animator

Wednesday, May 4, 2011

Funny javascript code to trick mozilla firefox

Here are some great javascript code which will animate your mozilla firefox windows in different ways.

Just copy the below code and paste into your mozilla firefox address bar and press enter to see magic.

To copy the code click on view-source icon.

1.With the below code you will not able to catch your mozilla firefox window to stop just end its process with task manager.

[sourcecode language="javascript"]javascript:a=0;x=0;y=0;setInterval("a+=.01;x=Math.cos(a*3)*200;y=Math.sin(a*2)*2;moveBy(x,y)",2);void(0)[/sourcecode]

2.The below code will make a earthquake effect , Its set to 6 times , you can change the value at end "Shw(6)"

[sourcecode language="javascript"]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);[/sourcecode]

3.The below code popups a message in reverse here it will show "your orkut account is hacked" you can also change the text .

[sourcecode language="javascript"]javascript:function reverse() { var inp = " ! dekcah si tnuocca tukrO ruoY "; var outp=" ";for (i = 0; i <= inp.length; i++) { outp =inp.charAt (i) + outp;}alert(outp) ;}; reverse();[/sourcecode]

Thanx for viewing if you liked the post please comment



0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More