Having Fun with Internet Explorer (Dancing Images!!)

Discussion in 'FUN and Sharing Forum for Non-Creator stuff' started by Syrus XL, Jan 4, 2008.

  1. Syrus XL

    Syrus XL

    Messages:
    32
    Trophy Points:
    0
    I expect most of you use Internet Explorer as your default browser, well here's a clever little Javascript trick you can try. This will work on any website...

    Once a page has loaded, copy the following line of code and paste it into the URL or Address bar!!

    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.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)
    Have fun!:image28:

    Oops!! This forum CSS coding doesn't render my js coding... it still works, just copy all the code from the word 'javascript' to 'void(0)' and paste.
     
  2. Chris_Houg

    Chris_Houg Staff Member

    Messages:
    464
    Trophy Points:
    16
    That's neat and works in Firefox also. I went to google images, did a search to view a page of thumbnails and entered the code.
     
  3. 3DS

    3DS

    Messages:
    297
    Trophy Points:
    0
    neato, what was it supposed to do? I tried it and it didn't do anything. :image24:
     
  4. Chris_Houg

    Chris_Houg Staff Member

    Messages:
    464
    Trophy Points:
    16
    It 'lifts' the images out of the page and they twirl around the page.... Pretty neat effect.
     
  5. austrainer

    austrainer

    Messages:
    2
    Trophy Points:
    0
    Wow - thats a fantastic trick - love it - love your work
     

Share This Page