Geeky web tricks to impress nobody

Want to irritate your friends and workmates? Why not copy and paste these javascript codes into the address bars of websites on their computers? For best results, try web pages with lots of graphics:

Copy and paste this code in its entirety into the address bar of a web browser to make it shake:

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)

Copy and paste this one to send the graphics for a spin. (Guaranteed to upset the hungover):

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

This code is an inbuilt calculator. Just replace the numbers in the code for different calculations:

javascript: alert(12345+1234-123);

Supercool code allows you to edit a website, but does not change the website for anyone else:

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

About author
Asian Correspondent is the fastest growing news service in Asia with millions of pages read every month, considered to be the "Hyperlocal Far East Reporting Collective."

About

Brought to you by the people behind Asian Correspondent and Travel Wire Asia, Tech Wire Asia offers insights and an overview on the technology scene in the region. Our regional staff brings you daily news, views and reviews on the startup scene, gadgets, social media, enterprise software, and green technology. Read more about the Tech Wire Asia team here.

Twitter

Tech Wire Asia © 2012 All Rights Reserved