ShoutMeLoud – Shouters Who Inspire

Superlinks
≡ Menu
≡ Menu

Cool Javascript trick for Google Image result

bluehost

Let Rubina Read this post For you

Cool Javascript trick for Google Image result

Do you feel like amazing your friends with some fancy Javascript tip? How about showing them Google image search result and let all the image dance with one simple Javascript code.

Update: This trick doesn’t work with latest Chrome or Firefox browser. Either use, Internet explorer or old versions of Chrome and Firefox browser.

This is a cool javascript trick which you can use in Google image result. Go to Google image search page. Google image search page. Search for any search term like “ShoutMeLoud”. Once the result is displayed, copy the below given code into your URL and hit enter. You will see images dancing and rotating. This trick can be applied to many sites, but we mentioned Google image as you can quickly see the demo of this cool Javascript trick.


google image fun thumb

Now on the search result copy paste this Java script code on your browser URL and hit enter.

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);

Enjoy the power of java script on Google image search result.

This trick also works with other sites like Facebook. Login to your Facebook account on IE browser and copy paste the above JS code in URL field and you will see an effect like this:

Facebook Javascript trick 550x344

If you know more such cool Javascript trick, feel free to let us know via comment or contact form. Don’t forget to subscribe to us to keep receiving such cool updates.

{ 3 comments… add one }

  • Binaryday

    Where are your “step by step blogging” posts? Btw are you aware of some affiliate marketing products?

    I was wondering if it will not be better if we do the blogging guide stuff together. We stand a better chance of succeeding that way. Let me know your views.

    Reply
    • Harsh Agrawal

      Hey Sita
      I’m just making sure that I’m ready before I start with “Blogging : Step by step” Series..
      So I’m prepering almost 100 post on this…so that once I will start the program I will never run out of post and my readers will get enough input all the time.
      My point is if we do it together there are more chances of getting more views and this will be handy for more readers.

      Reply
  • FedEx Blog

    Very good Javascript to control and draw Images for like stream

    Reply

Leave a Comment