By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Luxury Tech, Business Events, and Insight for Global IntellectualsLuxury Tech, Business Events, and Insight for Global Intellectuals
  • Home Technology
    • Home 2Hot
    • Home 3
    • Home 4
    • Home 5New
  • Technology
    Technology
    Show More
    Top News
    Apple Jul Announcement: What a Refresh for Macbook
    Sponsored by Sponsored bySponsored by
    Advantages and Disadvantages of Having Smartphone
    April 20, 2023
    Top 10 Best Portable Bluetooth Speakers for Summer Fun
    April 20, 2023
    Latest News
    Top 10 Best Portable Bluetooth Speakers for Summer Fun
    April 20, 2023
    Apple Jul Announcement: What a Refresh for Macbook
    Sponsored by Sponsored bySponsored by
    Advantages and Disadvantages of Having Smartphone
    April 20, 2023
  • Gadget
    GadgetShow More
    Best Fujifilm Cameras for Every Photographer
    Seeking Suggestions Regarding Headsets for Conference Interpreters
    4 Min Read
    4
    Portable Bluetooth Speakers That can Go Literally Anywhere
    4 Min Read
    3
    Should I Replace My Upright Vacuum with a Cleaning Robot?
    4 Min Read
    4
    Top Rated Products in Wireless & Portable Bluetooth Speakers
    4 Min Read
  • Posts
    • Post Layouts
      • Standard 1
      • Standard 2
      • Standard 3
      • Standard 4
      • Standard 5
      • Standard 6
      • Standard 7
      • Standard 8
      • No Featured
    • Gallery Layouts
      • Layout 1
      • Layout 2
      • Layout 3
    • Video Layouts
      • Layout 1
      • Layout 2
    • Audio Layouts
      • Layout 1
      • Layout 2
      • Layout 3
    • Post Sidebar
      • Right Sidebar
      • Left Sidear
    • Content Features
      • Inline Mailchimp
      • Highlight Shares
      • Print Post
      • Inline Related
    • Auto Load Next Posts
    • Sponsored Post
  • Pages
    • Search Page
    • 404 Page
Search
  • Contact
  • Blog
  • Complaint
  • Advertise
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Reading: 3 Awesome Office Pranks for Coders
Share
Sign In
Notification Show More
Aa
Luxury Tech, Business Events, and Insight for Global IntellectualsLuxury Tech, Business Events, and Insight for Global Intellectuals
Aa
  • Tech News
  • Gadget
  • Technology
  • Mobile
Search
  • Home
    • Home 1
    • Home 2
    • Home 3
    • Home 4
    • Home 5
  • Categories
    • Tech News
    • Gadget
    • Technology
    • Mobile
  • Bookmarks
  • More Foxiz
    • Sitemap
Have an existing account? Sign In
Follow US
  • Contact
  • Blog
  • Complaint
  • Advertise
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Luxury Tech, Business Events, and Insight for Global Intellectuals > Blog > Uncategorized > 3 Awesome Office Pranks for Coders
Uncategorized

3 Awesome Office Pranks for Coders

guest
Last updated: 2011/12/28 at 7:06 AM
guest
Share
SHARE

You probably spend more time in your cubicle than you do in your Barcalounger. Am I right? In any case I’m sure you and your team could use a few more laughs from time to time.

I called this “3 Awesome Office Pranks for Coders” but maybe a better title would have been “3 Awesome Office Pranks from Coders” because even if you aren’t a programmer, you can pull off these excellent office pranks.

What we have here are three snippets of Javascript code that you can paste into any of your coworkers’ browser address bars, hit return, step back and enjoy the antics. There is nothing like seeing your co-worker thinking his computer is crashing with some unheard of, deadly virus!

Tip: Try these out on your own computer first and in a variety of different browsers. Not all of these pranks will work in every instance. Also, tabbed browsing might cause some not to function.

1. Is this “The Big One”?
If you’re out on the West Coast, this one might make you think that the San Andreas Fault has finally cut loose. When the following code is pasted into a web browser the window will shake and shimmy all across the victim’s screen.

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

With this prank, timing is critical. You must have a good idea how long your victims will going to be away from their computers. Depending on the layout of your office cubicles, you may want to get one of your friends in on the prank to act as a spotter.

2. Dancing the Java Jive
The Jive was a popular swing dance back in the day. What we have here is not so much a Jive as a Conga line, but Java Conga didn’t have same ring to it. Sorry. This one works best when the browser of your victim is on a page with a lot of images. Paste this code into the address bar, hit return and those images will start snaking around the window like tipsy Cariocas dancing down the streets of Rio de Janero at the height of Carnival.

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”; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+”px”}R++}setInterval(‘A()’,5); void(0);

3. Your Name Here
This is a sly one. Paste this code into your victim’s browser and it essentially turns the webpage into an editable document. You can select any type on the page and change it to your heart’s content. How does your victim waste time at work? Checking Facebook? Scanning Match.com? Getting enraged at—or by—the latest article on The Huffington Post? In any of these cases, I’m sure you can find some creative ways to tweak the headlines to make your victim wonder what the heck has happened?

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

I thank Computer Pranks Central, NT Hacks and DotNetBlocks for pointing out these clever little bits of Javascript code. Check out those sites, you might come up with some more great ways to punk your coworkers. If you do, let me know.

You probably spend more time in your cubicle than you do in your Barcalounger. Am I right? In any case I’m sure you and your team could use a few more laughs from time to time.

 

I called this “3 Awesome Office Pranks for Coders” but maybe a better title would have been “3 Awesome Office Pranks from Coders” because even if you aren’t a programmer, you can pull off these excellent office pranks.

 

What we have here are three snippets of Javascript code that you can paste into any of your coworkers’ browser address bars, hit return, step back and enjoy the antics.

 

Tip: Try these out on your own computer first and in a variety of different browsers. Not all of these pranks will work in every instance. Also, tabbed browsing might cause some not to function .

1. Is this “The Big One”?

If you’re out on the West Coast, this one might make you think that the San Andreas Fault has finally cut loose. When the following code is pasted into a web browser the window will shake and shimmy all across the victim’s screen.

 

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

 

With this prank, timing is critical. You must have a good idea how long your victims will going to be away from their computers. Depending on the layout of your office cubicles, you may want to get one of your friends in on the prank to act as a spotter.

 

2. Dancing the Java Jive.

The Jive was a popular swing dance back in the day. What we have here is not so much a Jive as a Conga line, but Java Conga didn’t have same ring to it. Sorry. This one works best when the browser of your victim is on a page with a lot of images. Paste this code into the address bar, hit return and those images will start snaking around the window like tipsy Cariocas dancing down the streets of Rio de Janero at the height of Carnival.

 

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”; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+”px”}R++}setInterval(‘A()’,5); void(0);

 

3. Your Name Here.

This is a sly one. Paste this code into your victim’s browser and it essentially turns the webpage into an editable document. You can select any type on the page and change it to your heart’s content. How does your victim waste time at work? Checking Facebook? Scanning Match.com? Getting enraged at—or by—the latest article on The Huffington Post? In any of these cases, I’m sure you can find some creative ways to tweak the headlines to make your victim wonder what the heck has happened?

 

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

 

I thank Computer Pranks Central, NT Hacks and DotNetBlocks for pointing out these clever little bits of Javascript code. Check out those sites, you might come up with some more great ways to punk your coworkers. If you do, let me know.

David Ching is a marketing strategist for EQAOfficeFurniture.com, a retailer of office cubicles, desk chairs, conference table, work stations, receptionist desks and more.

You Might Also Like

Adobe Photoshop 3D Printing Features

Technology Revolutionizing the Healthcare Field

Unfair or Unethical? Technology and Field Sobriety Tests

The Ultimate Living Room Home Entertainment Device – Logitech Wireless Keyboard With Mouse

Tech Entrepreneur How to Start a Modern SEO Business

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
guest December 28, 2011 December 28, 2011
Share this Article
Facebook Twitter Copy Link Print
Share
Previous Article Technology in the Courtroom During a Bankruptcy Proceeding
Next Article I Spy With My Little Eye…

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow
banner banner
Create an Amazing Newspaper
Discover thousands of options, easy to customize layouts, one-click to import demo and much more.
Learn More

Latest News

Best Fujifilm Cameras for Every Photographer
Are Smartwatches the Future of Wearable Devices?
Tech News
Seeking Suggestions Regarding Headsets for Conference Interpreters
Gadget
Top 10 Best Portable Bluetooth Speakers for Summer Fun
Technology
//

We influence 20 million users and is the number one business and technology news network on the planet

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

[mc4wp_form id=”1616″]

Luxury Tech, Business Events, and Insight for Global IntellectualsLuxury Tech, Business Events, and Insight for Global Intellectuals
Follow US

© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.

Join Us!

Subscribe to our newsletter and never miss our latest news, podcasts etc..

[mc4wp_form]
Zero spam, Unsubscribe at any time.
Welcome Back!

Sign in to your account

Lost your password?