« YouTube Knows You | Main | The Web as a Workplace »

October 23, 2006

Make This Page Dance in Circles

BORED? You can make the images on this page dance with a little Javascript snapped into the address bar. Copy the code below and paste it into the address bar, then use a few keystrokes to see the images circle around the place. Here's the code:

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

After you paste the code into the URL address bar, use the following keystrokes:

CTRL + C
ALT + D
CRTL + V
ENTER

Enjoy!


via via Ursi.
Related Posts

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451945169e200d8356bd4ab69e2

Listed below are links to weblogs that reference Make This Page Dance in Circles:

Comments

From Hashtags in my Life

  • #blogging Ryan Tubridy
  • #ictedu
  • #travel on the M8
  • #measureit
  • #retro
  • #NYC Manhattanhenge
  • #blogging
  • EoghanJennings
  • Recorded at ICT in Education Conference
  • #purposed
  • #egfdell video
  • #journal
  • #resources Free apps like @evernote
  • #ictedu Biros and Webcams
  • @Documentally @MyDolans
  • #event George Lee Opens Pop-Up Bank
  • #news
  • Anti-terrorist Tags
  • #trend Mifi
  • #queensvisit
  • #technology Data warning
  • #analytics Matt Cutts
  • Road Closed for #QueensVisit
  • #mash2011

My Online Status

Delicious Dopplr Facebook Flickr Jaiku Last.fm LinkedIn Other... Skype Twitter Twitter Yahoo!
Blog powered by TypePad
Visitors since September 2001:
View My Stats
Real Time Web Analytics