Professional ballplayers passing their idle time in the dugout will often resort to various tried-and-true pranks to lift their spirits and perhaps settle a score. The "hot foot" has always been a favorite.

While lighting a book of matches under the right foot of the coworker in the cubicle next to yours, might be taking things a little too far, you do have some options, and few of them are better than sticking it to your buddy with a diabolical—but ultimately harmless—snippet of avascript.

3 Awesome Computer Pranks To Pull in your Buddy’s Cubicle

After many trial runs in our test lab, we're ready to unveil our favorite 3 computer pranks to pull on your buddy in the cubicle next door. Of course, if you're a good scout and blessed with a sufficient amount of stealth, you can extend the range of your pranks and hit cubicles in any corner of your office layout.

3 Awesome Computer Pranks To Pull in your Buddy’s Cubicle

1. Edit Texts of Any Website

How would you like to be headline writer for The Smoking Gun or the Drudge Report? With this piece of code, you can make it happen.

Here's the way to pull it off. Watch for your victim, er I mean buddy, to leave his or her office cubicle. Paste the code below into the unsuspecting browser and hit enter. It gives you the power to edit text on the page. You can turn "Lindsay Lohan Nabbed Again!" into "Joe Glotz Fired Again!"

3 Awesome Computer Pranks - Edit Texts of Any Website

Or, if you want to enjoy your 15 minutes of fame, you can use it on your computer and immortalize yourself in a headline. Take a screen shot and distribute it to all your friends who will be shocked to find out you're dating a movie star. Here's the code:

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

2. Follow the Bouncing Ball

Back when all TV screens were black and white and they were built into cabinets that weighed 300 pounds, a guy named Mitch Miller had a sing-along-show where viewers followed the bouncing ball at the bottom of the screen.

This clever little piece of Javascript code will have your buddy's browser window bouncing around the screen like its covered with itching powder. Split second timing is central to this one. If you want to extend the length of bounce time, change "35" to a bigger number. A value of 600 would keep it going for a minute. Here's what you need to paste into the browser:

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)-accident

Also Check :

Top 12 Google "I'm Feeling Lucky" Tricks

Top 3 Google Translate Tricks For Fun

HOW TO : Call Your Friends From Their Own Cell Number

HOW TO : Post Blank Update On Facebook Wall

3. Moving Pictures - Literally!

3 Awesome Computer Pranks - Moving Pictures of any Website

We're seeing so many Internet ads that use video instead of static graphics because motion more easily captures our attention. This hunk of code will definitely get the attention of your cubicle-dwelling dupe. Paste it into a web browser and the images on the page start to do a conga line around the window that makes Brazilian samba dancers look like slackers.

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px";*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);

Before you start your nasties, test these pieces of code on the same browser your victim is using. Also, some may not work in a tabbed browsing environment. When you set out to terrorize the cubicle farm, you need to know that everything will work just the way you want it.