Javascript Cool Effect Trick

Hemmy Javascript

This is a really cool javascript trick that you can try out. Paste the following code into the address bar when any website with images is loaded. It is best used in uniform size pictures such as the one in Google Images.

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

To stop the animation, just click on your browser’s refresh button.

Source: StopGeek




Related Posts

  • Masaaki Sakai Billiard Trick Shots
  • Cyril Takayama Burger Menu Trick
  • The Digg Effect
  • Beautiful Blizzard Fan Art
  • Chris Angel Levitation Magic Exposed Video
  • Household Items Domino Effect
  • Luxury Bus Way Better Than Your Home
  • Human Domino Beer Commercial
  • Cool Desk Accessories
  • Cool Bizarre Jewelry Ideas




  •   Email This Post Email This Post

    11 Responses to “Javascript Cool Effect Trick”

    1. 1
      Dirty Carl » Blog Archive » Cool Javascript Says:

      […] Cool Javascript Check out this cool Javascript trick that performs some interesting animation. Try it out for yourself! Link & Image:Hemmy.Net Tags: Javascript | Animation […]

    2. 2
      travelpeople Says:

      Cool animation!!!!

    3. 3
      Veron Says:

      Totally awesome! I don’t mean to shamelessly plug my site but it does look wonderful there!

    4. 4
      Xtine Says:

      how do you get it to work??? :s

    5. 5
      Katana Says:

      Just copy and paste the code into your address bar (the one where you type your url such as http://www.google.com)

    6. 6
      Carlos Desseno Says:

      Really nice.

    7. 7
      Script of the week goes to… at Andrew Sellick Says:

      […] it’s just a bit of fun, however, it’s still quite cool.  I found a piece of code HEMMY.NET that produces a really nice affect when pasting the following JavaScript into the URL bar whilst […]

    8. 8
      jackson bollox Says:

      doesn’t work in IE

    9. 9
      Eddy Says:

      Try this (copy the code below and paste it on your internet address bar or 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()’,10); void(0);

      Hint: Use google image to search for any images.

    10. 10
      Pelle Says:

      Didnt make it to work with the latest Explorer and Firefox reader.But,maybe i did something wrong?.

    11. 11
      TImothy White Says:

      This version works in IE:

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

      simply copy (ctrl + C), press Alt + D, ctrl + V, then enter.
      the moving images will be at the top of the page.
      Note: this dosnt effect the internet! it only effects what YOU see!

    Leave a Reply

    heat pump prices bad side effects of viagra