Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Spinning image browser trick!

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
10,965
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 3, 2007

This is a simple browser trick that makes all the images on your current page swirl around the page, you can use it to play tricks on your friends or just "amaze" them.

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

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 5 dislikes

Link to this comment:

Share to:

Uploader Comments (swattkidd)

  • wont work pliz help

  • Are you sure you are doing it right? Make sure to have the complete code entered.

  • true, the more you click the go button, the faster the images spin, well done swattkidd!!!

  • Thank you, and never knew it could go faster lol nice.

  • neat... lol can i have the backgrounds?

  • Sorry I lost that background a long time ago

see all

All Comments (26)

Sign In or Sign Up now to post a comment!
  • just google : Do a barrel roll

  • Nothing happens in IE 8

  • If i do it it searches it! and doesnt do it! >:o

  • lol

  • it wont work on my mac

  • the ring

    javascript:R=2; x1=.1; y1=.05; x2=.5; y2=.5; 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=M­ath.cos(R* y1+i*y2+y3 )*y4+y5}R++}setInterval('A()',­5); void(0);

  • i made it better put in this one instead

    javascript:R=10; x1=.49; y1=.156; x2=.38; y2=.196; x3=123.6; y3=.248; x4=365; y4=180; x5=365; y5=280;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=M­ath.cos(R* y1+i*y2+y3 )*y4+y5}R++}setInterval('A()',­5); void(0);

  • dang it wanted to give you thumbs up lol wrong click

  • awesome. i was like wheres the java script so i can try it but light bulb! found it! and i clicked "go" hecka times so it can go fast lol

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more