PDA

View Full Version : Cool animation glitch!! MUST SEE


verks36
08-18-2007, 12:58 PM
OK First go to google images and type in steelers. Then when you are at the page paste this into the address bar at top and then press enter. ( Just replace ever thing so this is the only thing in the address bar.) IT is really really sweet have never seen anything like this before.

Insert this whole thing into 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; 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);

fansince'76
08-18-2007, 01:32 PM
All I get is an error on the page - you sure that code is 100% correct?

MACH1
08-18-2007, 01:37 PM
Uhhh Just a bunch of random pics.

Crushzilla
08-18-2007, 04:57 PM
This sounds dangerous... This better not be a virus or some other crazy thing, Verks

CantStop85
08-18-2007, 05:26 PM
I wouldn't call it a glitch nor is it a virus...it's just a javascript that gathers all the images on the page and absolute positions them at random spots on the screen to create some sort of animation.

Although I don't think your current script is working.

Dynasty
08-19-2007, 09:06 PM
Here, I fixed the code. This one works... it was just a typo.

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

verks36
08-19-2007, 10:03 PM
Here, I fixed the code. This one works... it was just a typo.

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


thanks dude i couldnt get it to work lol

even though yea its not a glitch i guess but i still think it is pretty cool though

SteelersMongol
08-19-2007, 10:24 PM
Couldn't get work. Must be doing it wrong.

fansince'76
08-19-2007, 10:32 PM
There was still a space in the code where there shouldn't have been one - for some reason, when pasting it here, the board software kept inserting an incorrect blank space in the "setInterval" command. Here is the corrected code without the extra incorrect space, and yes, verks36, it is pretty cool:

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

verks36
08-19-2007, 11:01 PM
thanks dude ya i kept copying and pasting it and it worked but when i tried to use the one on the board it wouldnt work. I WAS SO CONFUSED

Preacher
08-20-2007, 01:54 AM
Not bad!

#1LambertFan
08-28-2007, 06:21 PM
the first one worked the other didnt