January 3, 200719 yr A friend just showed me this. Go onto any site, here now if you liek and type this into the address bar and hit go. java script: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); EDIT: Okay, cos the forum is clever it's putting a space between the java and script at the beginning, so delete that space then try Edited January 3, 200719 yr by Felix
January 3, 200719 yr Do you leave the address in the bar and then type it in? I have tried it with and without but just get errors!
January 3, 200719 yr i got loads of yellow stuff, over all the "i"'s and everytime the word java appeared. Dont get it
January 3, 200719 yr It worked fine for me...Its pretty cool...It makes you fall asleep after trying time after time to get it to do something. I'm missing sumptin also.
January 3, 200719 yr Author Man that is cool, only problem how do you catch that pesky "add reply" button? Heh, true. You just copy it all and paste it into your address bar instead of the website address, then you gotta take out the space between java and script and hit go, it should work.
January 3, 200719 yr Ok, its a piece of JS code that manipulates images on the page you are viewing. It works in IE , Firefox & Opera (edit after checking) java script: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); Type in http://www.youtube.com and copy and paste the code above and watch the images move around the screen ! (make sure you edit java script into one word removing the space as Felix said above) Edited January 3, 200719 yr by AtomAnt
January 3, 200719 yr Author I bet I look like a right coding noob, when really I'm not into it at all, a mate just showed me it. Looks better on a page with more images on that google to be honest. Works fine with Firefox for me, and apparently works with Opera too.
January 4, 200719 yr Author so what is the point in doing it .that is just stupid !! Steady on! Try refreshing the page Richard. xxx
January 5, 200719 yr bloody hell Jamie chill out! lol Its only a little trick mate! Worked on firefox for me! I went on youtube and just tried to click one of the pictures to see what the movie was! lol
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.