Insane Javascript trick.

8 01 2007

Update: I found out that this script will not work on websites using CSS to display images.  Can’t explain it further, just try this on

This is one of the coolest javascript trick I have seen. Just follow these 4 simple steps.

1. go to any website

2. delete everything in the address bar

3. paste the following code in the address bar:

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

4. press enter and have fun

Try it out on webpage that has lots and lots of pics. It’s not working on my firefox.

Original post spotted here via digg.




11 responses

9 01 2007
Paula Neal Mooney

Man, this thing has over 3300 diggs! I’m scared to try it. What does it look like?

9 01 2007

nothing harmful. Trust me. It’s just cool.

10 01 2007

That is pretty cool. Don’t know where it would really come in handy, but hey, it’s fun, right?

10 01 2007


yeah its fun. that’s all.

12 01 2007

I’m kinda bummed. I tried it and it didn’t do anything for me =( I use IE, so maybe it’s just me or it doesn’t like IE?

12 01 2007


yes! it works on IE.
thanks for dropping by.

26 01 2007

That is pretty neat, pointless, but neat, thanks for the tip.

1 02 2007

nothing happens, both in IE and firefox… =}

1 02 2007

What’s your IE version? I tried it on IE 6 and it worked, but it will not work on Firefox.

4 02 2007

Nothing seems to happen.. 😦
I’m using IE7.
what is suppose to happen anyway? 😀

5 02 2007


It’ll just mess the images in a webpage. It’s working on me.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: