Showing posts with label Have Fun With JavaScript. Show all posts
Showing posts with label Have Fun With JavaScript. Show all posts

Wednesday, September 8, 2010

Shake your browser

Note: This Script works for Safari.

To Shake your browser just follow few following steps.

Step1: Open your browser's new window or Press  ctrl+N and resize browser window from full screen size.

Step2: Paste following code to your browser's address bar then press "Enter".

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(9)

You can change number of time shaking by replacing second last number 9 to any number how many time you want to shake

Thursday, March 18, 2010

Pictures flying as a snake around on Your Browser


Note: This Code will not work on Firefox Latest version. 
Open you browser Safari or chrome or Firefox(old version) open any sites which have some images, after properly opened your site just Delete hole URL to browser's address bar and put following code on address bar. Then press "ENTER".
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; var 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++}tag=setInterval('A()',5 );document.onmousedown=function(){clearInterval(tag);for(i=0; i< DIL; i++){DI[i].style.position="static";}}; void(0)


Monday, March 2, 2009

Browser Calculator

If you don't want to use Windows calculator just open you browser put following code on browser address bar press enter you will got answer you can change values as you required.

javascript: alert(34343+3434-222);

Magic Of JavaScripts

Start editing any page/website in real-time . With Firefox, Safari and also you can even edit and save the modified pages to your computer.Just open any site and replace all url address with following code on browser's address bar and press "Enter"

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