This Trick makes all the images on the Google image search page to dance like anything.
1. Go to http://images.google.com
2. Search for any image you like. I searched for Bikes.
3. Then delete the url in the address bar. Like in this case, it would be something like this :
http://images.google.com/images?hl=en&q=bikes&btnG=Search+Images&gbv=2&aq=f&oq=bike
4. Paste any one of the three scripts instead of the url to see amazing effects:
a.)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);
b.)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);
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);
4.And then hit Enter. Enjoy!!
Need any help? Feel free to contact me.
If you like this article then you may also like receiving free daily updates directly in your email (one email per day).
2 comments:
Fun effects but a) does not work
samksethi,
If it does not work for you, how do you know it is fun effects?
Btw, What Browser did you try on?
I have tested on Mozilla Firefox and Microsoft internet explorer.
Post a Comment