Cool Google Images Javascript Trick

This is a cool javascript image trick in the google images that will create a interesting effect on the images that are found. You can try this with any search term and see the picture effect.

This is a cool javascript image trick in the google images that will create a interesting effect on the images that are found. You can try this with any search term and see the picture effect. Its interesting but don’t keep watching it as it might cause dizziness. Do not try at other sites as it may produce unusual outcome.

Here’s a image of how it looks.

cool google images javascript effect

Here’s the code:

You can drag this link on your bookmarks bar for use.

Animate Google Images


Code:-

javascript:
R=0;
x1=.1;
y1=.05;
x2=.25;
y2=.24;
x3=1.6;
y3=.24;
x4=50;
y4=50;
x5=50;
y5=50;
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)*x4)+"px";
DIS.top=(Math.cos(R*y1+i)*y4)+"px"
}R++
}setInterval('A()',0);
void(0);

You still can hover on the images and they will come up and dance for you.
cool google images hover effect

Enjoy the Trick

Leave a Reply