Log in

View Full Version : Neat javascript trick



Street Gerbil
11th October 2006, 09:21
Go to Google

2. Click images

3. Type "Motorcycle" or any other word.

4. You will get a page which is full of images

5. Then delete the URL from the address bar and paste the below script (it becomes visible when you select it)


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++}setInterv al('A()',5); void(0)

6) Hit Enter and enjoy!

7) (Optional) Paste the script into the notepad and admire its ingenious simplicity.

WRT
11th October 2006, 09:25
Note this works on any website, try it on a few others as well, say the Herald website etc.

MSTRS
11th October 2006, 09:28
Pass me another dooby. That is cool.

WRT
11th October 2006, 09:28
You might be better off with some acid . . .

Gets kinda hard on your eyes after a while tho.

Sniper
11th October 2006, 09:30
That was pretty neat. :)

The Pastor
11th October 2006, 09:32
nuts bro. 10char

TerminalAddict
11th October 2006, 09:35
too much spare time !!!

neat trick tho' :D

kiwifruit
11th October 2006, 10:06
hehe
nice trick

bugjuice
11th October 2006, 11:17
try it with boobies :eek:

jetboy
11th October 2006, 12:40
try it with boobies :eek:
haha I'd be keen for that.

any other tricks like that?

Nitzer
11th October 2006, 12:56
That's cool.......now my eyes hurt

Slingshot
11th October 2006, 17:58
try it with boobies :eek:

Exactly what I was thinking!!!

oldguy
11th October 2006, 19:26
nice trick, got dizzy watching all these porn images going round.

Hitcher
11th October 2006, 20:04
Some geek wrote that.

andrea
11th October 2006, 20:05
hey that was some cool trick man:), primo

u4ea
11th October 2006, 20:16
hahahahaha.........very cool