Trippy thing to do with "Google Images"
Go to "Google Images"
Search for anything...
Remove the URL from the Address bar and add
Code:
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.to
Press enter...
Gotta love Javascript :P.
Re: Trippy thing to do with "Google Images"
Re: Trippy thing to do with "Google Images"
Quote:
Originally Posted by
backlash
nothing happens.
Ditto.
Re: Trippy thing to do with "Google Images"
Re: Trippy thing to do with "Google Images"
You all sure? Worked for me.
What's meant to happen is all the images swirl around.
Make sure you searched through Google images (and not Google 'web'), then remove the URL and add
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.to
PS: I used FF?
Re: Trippy thing to do with "Google Images"
Your code was cut off.
And btw it works on any page. Even here. :)
Code:
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()',50); void(0);
Re: Trippy thing to do with "Google Images"
Yup, and the result here is far more interesting
DOM manipulation brings joy in our lives :01:
Re: Trippy thing to do with "Google Images"
Still doesn't work for me.
tescos code, when entered, simply removes all the images from the page. :huh:
Re: Trippy thing to do with "Google Images"
Quote:
Originally Posted by
Skizo
Still doesn't work for me.
tescos code, when entered, simply removes all the images from the page. :huh:
scroll to the top. :unsure:
Re: Trippy thing to do with "Google Images"
thanks! NOW it works. Cool stuff.