felix Posted January 3, 2007 Report Share Posted January 3, 2007 (edited) 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, 2007 by Felix Quote Link to comment Share on other sites More sharing options...
seandellear Posted January 3, 2007 Report Share Posted January 3, 2007 Do you leave the address in the bar and then type it in? I have tried it with and without but just get errors! Quote Link to comment Share on other sites More sharing options...
olwhittyone Posted January 3, 2007 Report Share Posted January 3, 2007 i got loads of yellow stuff, over all the "i"'s and everytime the word java appeared. Dont get it Quote Link to comment Share on other sites More sharing options...
motofire Posted January 3, 2007 Report Share Posted January 3, 2007 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. Quote Link to comment Share on other sites More sharing options...
zippy Posted January 3, 2007 Report Share Posted January 3, 2007 Man that is cool, only problem how do you catch that pesky "add reply" button? Quote Link to comment Share on other sites More sharing options...
felix Posted January 3, 2007 Author Report Share Posted January 3, 2007 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. Quote Link to comment Share on other sites More sharing options...
atomant Posted January 3, 2007 Report Share Posted January 3, 2007 (edited) 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, 2007 by AtomAnt Quote Link to comment Share on other sites More sharing options...
felix Posted January 3, 2007 Author Report Share Posted January 3, 2007 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. Quote Link to comment Share on other sites More sharing options...
jamie stokes Posted January 3, 2007 Report Share Posted January 3, 2007 I just think its anoying . how do you get the site back to how it was ? Quote Link to comment Share on other sites More sharing options...
john.b Posted January 3, 2007 Report Share Posted January 3, 2007 Well that's the trick! you can't Quote Link to comment Share on other sites More sharing options...
jamie stokes Posted January 3, 2007 Report Share Posted January 3, 2007 so what is the point in doing it . that is just stupid !! Quote Link to comment Share on other sites More sharing options...
boofont Posted January 4, 2007 Report Share Posted January 4, 2007 Won't work in firefox for me. Quote Link to comment Share on other sites More sharing options...
felix Posted January 4, 2007 Author Report Share Posted January 4, 2007 so what is the point in doing it .that is just stupid !! Steady on! Try refreshing the page Richard. xxx Quote Link to comment Share on other sites More sharing options...
seandellear Posted January 5, 2007 Report Share Posted January 5, 2007 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 Quote Link to comment Share on other sites More sharing options...
jamie stokes Posted January 5, 2007 Report Share Posted January 5, 2007 didnt realise how nasty that sounded till i read it back to my self sorry mate Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.