trippy cnn

By David Ponce

This is a cool trick you can try on your browser, right now.

1. Go to any webpage. I suggest cnn.com, but it could be almost anything.

2. Once there, delete everything in the browser’s address bar.

3. Paste the following code and 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; 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); [For whatever reason (and I’m freaking stumped here), copying the text from this site doesn’t work. Just follow the link to the Destructoid site, and copy the text from there. Then it will work. If someone can tell me why this happens, I’ll have a beer on you. -Ed. ]

All the images on the page are going to start swirling around in a trippy, fascinating and frankly hilarious effect.

For all those of you little saints out there, don’t be worrying: it’s not braking anything. You haven’t hacked anyone, or hurt anything. You’re just having a little fun with your browser, so loosen up and give it a shot. And, hell, come back here and let us know which site works best.

VIA [ Destructoid ]

4 COMMENTS

  1. Hi guys, that code you put there doesn’t work but you can use this one: 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);

    I love oh gizmo, keep up the cool reviews!

  2. The reason the code on this site doesn’t work but the code on destructoid does is due to the single quote characters. The code on destructoid uses a regular single quote character, ASCII character 27 in hex or 39 in decimal. The code as shown on ohgizmo is using some other special character that looks like a quote. This often happens when using something like a word processor to type computer code. Computer code is not intended to be typed in a word processor or any other sort of rich text editor. Get rid of the fancy single quote character and use a nice simple regular single right quote ASCII character, and all will be well.

LEAVE A REPLY