Carson 0 Report post Posted September 14, 2007 (edited) You might already know this but it doesn't really matter....OK this isnt a useful trick or something, its just something thats fun to see. 1. Goto Google2. Click "images"3. Type "jesus" or any other word4. You will get a page which is full of images5. Then delete the item from the address bar and paste the below script: 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.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) Edited September 19, 2007 by Carson (see edit history) Share this post Link to post Share on other sites
BuffaloHelp 24 Report post Posted September 19, 2007 I'm afraid this little trick does not work with Firefox... either that I have my security set too high Share this post Link to post Share on other sites
Carson 0 Report post Posted September 19, 2007 Did it come up with a google search? I accidentally put a space in the word javascript, so it would not have worked. I edited the code in the first post, try it again. I'm using the latest version of Firefox, and it works for me. You can do this with any site, but on some sites the images just go out of place. It works well with the google image search though. Share this post Link to post Share on other sites
faund 0 Report post Posted September 19, 2007 (edited) It does not work for me either IE or firefox.It just get me to google search and get some result for me.Maybe that's a bug and is fixed now. Edited September 19, 2007 by faund (see edit history) Share this post Link to post Share on other sites
reconraiders 0 Report post Posted September 19, 2007 wow! that's pretty sweet. It works for me! You just have to change "java script" to "javascript" Share this post Link to post Share on other sites
faund 0 Report post Posted September 22, 2007 Yes! it works!All images fly like a snake.I followed your code made another one, try it if you are interest in. java script:R=0; x1=0.01; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=600; 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.cos(R*x1*x2+i*x2+x3)*Math.cos(R*x1*x2+i*x2+x3)*x4; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0) Share this post Link to post Share on other sites
Saint_Michael 3 Report post Posted September 22, 2007 (edited) you need to remove the space between java and script in order for this to work it should look like this: 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.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) It works in Firefox just not IE7 anyone try this on IE6?I tried one myself talk about getting a seizure java script:R=0; x1=0.01; y1=.05; x2=.15; y2=.24; x3=1.6; y3=.24; x4=1900; y4=1700; x5=100; 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.cos(R*x1*x2+i*x2+x3)*Math.cos(R*x1*x2+i*x2+x3)*x4; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0) Funny I seen this post before but that was like in 2005 I think so that topic is long been buried in here. Also you don't have to do just Jesus you can do any image search since the script is about moving the images themselves and not what hte search is about. Edited September 22, 2007 by Saint_Michael (see edit history) Share this post Link to post Share on other sites
midnightvamp 1 Report post Posted September 22, 2007 Now that's interesting.... I tried both variations, and they worked for me in the latest firefox as well. The only thing I noticed with the second code though is when I tried to come over to this page to post my findings, I was unable to switch between tabs while the javascript was still running. So I had to refresh my page to stop the images. I was able to switch tabs fine while I ran the first code.Still that's some pretty interesting pieces of javascript. I haven't delved too far into that whole language, and am hoping to learn more of what it can do soon :PAnyway, thanks for the neat trick Share this post Link to post Share on other sites
FLaKes 0 Report post Posted September 22, 2007 Wow, that is awesome. I was really getting frustrated at first because I was getting the google search, then I kept reading the whole thread and found out about the space. Guess you got to read all the instructions or the whole thread before you get the prize. Pretty neat effect. Share this post Link to post Share on other sites
Carson 0 Report post Posted September 27, 2007 Yeah, sorry about that. Im sure i edited my first post and removed that space... sorry about that. Share this post Link to post Share on other sites
kbjr 0 Report post Posted March 12, 2008 i couldnt get it to work.in the end, what should the url look like? Share this post Link to post Share on other sites
lailai 0 Report post Posted April 1, 2008 Wow! Thank you, that's funny. Does it work on all websites? Share this post Link to post Share on other sites
asdftheking 1 Report post Posted November 24, 2008 Wow! It's like a snake of pictures of Machu Picchu crawling in circles on my screen! lol Share this post Link to post Share on other sites
Ruben 0 Report post Posted November 26, 2008 Doesn't work for me. Share this post Link to post Share on other sites
miladinoski 1 Report post Posted November 26, 2008 Amazing, it works like a piece of cake in both Opera in Firefox by using the first method with java and script put together: javascriptHave fun Share this post Link to post Share on other sites