1. go to your website (should have some images on it at least) or any other site 2. execute the following javascript in the address bar (works in ie) 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 );
two days ago to be exact! {Oct 25th 2006, 10:05 pm} This is fu**ing cool and who knows how many times b4
which is fine in some cases but not in others...some people loathe duplicate threads. I'm always paranoid, so I use the search feature b4 I start a new thread (not that it correlates in this case).
Very cool trick with javascript. Paste the following in to your address bar while looking at a page with a lot of pictures. (google images works good like ) If you thought it was cool, showing a little green is always appreciated =) 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); Code (markup):
You could reverse the rotation and change the speed by tinkering with the code. Example: Change the 5 in setInterval(’A()’,5); to a bigger number… like 50 to slow it down. Or you could try this: function crazyImages() { 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; var A = function(){ 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); } Code (markup):
Lol, open a website in yuor browser and then copy and paste the code below into your address bar then hit enter see what happens lol. 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); Code (markup): BTW this works best on phpbb forums. ____________ Just to let people know this will NOT harm your pc.
you like it? try 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(%22img%22); 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)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R+ +}setInterval('A()',5); void(0); Code (markup): for some reason, works better in IE
Lol thanks for this, that is quite clever, it really does mess up websites, my DigitalPoint page is all wierd now ! Thanks for sharing!