To many people, web browser still remain as a dull, bored browser used to surf and browser the world wide web (WWW) despite many enhancements and features improvement. Well, here’s a simple trick to surprise your friends or making the visit to pages on Google sites (and probably some other websites as well) or when using Google Chrome interesting.

To make Google pages, and also the new tab page in Google Chrome web browser go crazy with images flying all over the place, follow these steps:

  1. Visit any of the Google home page (i.e. http://www.google.com) or open a new tab in Google Chrome.
  2. Copy and paste the following code into the address bar (location bar):

    javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=400; y4=300; x5=400; y5=300;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);

  3. Press Enter.

Enjoy the fun flying show. Note that if you want to change the size or coverage of flying area, just modify the value for x4, x5, y4 and y5 accordingly. To stop the effect, just refresh the page.

Image Flies in Browser

The trick works on Mozilla Firefox, Safari and Google Chrome web browser, and should work on all web pages by Google. Some other websites may have the same effect too. And don’t worry, the code is not malicious and won’t harm the computer.

Related Posts