Friday, January 19, 2007

Nifty JavaScript Hack

My buddy Igor passed on this entertaining JavaScript hack:

Give it a try, I promise it won't do any damage. Scouts Honor.

  • Visit a page with a bunch of images, like Amazon
  • Cut and paste the following text into your browser bar, all as one line: 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);
  • Sit back and watch the show

Thanks Igor!

5 comments:

  1. Anonymous6:54 PM

    awesome!

    ReplyDelete
  2. Totally. Couldn't have said it better myself.

    ReplyDelete
  3. Anonymous9:20 AM

    Wow!
    So great that I shocked to have my pictures moving around..
    Hehehe..
    Great.

    ReplyDelete
  4. Anonymous8:23 AM

    try this too:

    javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0

    ReplyDelete
  5. Anonymous4:13 PM

    WHAT IS THIS SUPPOSED TO DO I WANT TO HACK NOT HAVE THINGS MOVING AROUND ON MY SCREEN

    ReplyDelete