Introduction: Javascript

these are some tricks I've learned that can be copied from this page and pasted into the internet address bar!

1) shake the internet browser:




just copy this into the URL:

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)

or...

click here!

and tada!!! you have a shaky internet! but this trick doesn't work with oter tabs open and only works in internet explorer


ps i have to include images so here's one even though it has nothing to do with anything ;D

Step 1: This Is the Second Step Despite What It Says on the Step Menu!

this one is even better! it moves the pictures on a internet website around!

the code is...

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

and look! click here to watch the picture below move!

Step 2: Step 3!

this is the last one but its a good one to show off with!!!

all you have to do to EDIT!!! a page is copy this code:

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

or... yes you guessed it CLICK HERE!!!






look!!! another image :-O