Page 1 of 5 1234 ... LastLast
Results 1 to 10 of 49

Thread: Trippy thing to do with "Google Images"

  1. #1
    iLOVENZB's Avatar FST Crew BT Rep: +1
    Join Date
    Sep 2008
    Location
    Land gurt by sea
    Posts
    8,331
    Go to "Google Images"

    Search for anything...

    Remove the URL from the Address bar and add

    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.to
    Press enter...

    Gotta love Javascript .

  2. Internet, Programming and Graphics   -   #2
    backlash's Avatar usenet lover
    Join Date
    Aug 2003
    Location
    in your dreams
    Posts
    1,579
    nothing happens.

  3. Internet, Programming and Graphics   -   #3
    Skiz's Avatar (_8(I)
    Join Date
    May 2003
    Location
    CO
    Age
    46
    Posts
    22,943
    Quote Originally Posted by backlash View Post
    nothing happens.
    Ditto.


    yo

  4. Internet, Programming and Graphics   -   #4
    Glitterstep's Avatar Peace|Lov|Energy|EDM BT Rep: +17BT Rep +17BT Rep +17BT Rep +17
    Join Date
    Jan 2009
    Location
    India...
    Age
    34
    Posts
    1,545
    Same here....
    Last edited by Trancetastic3; 04-10-2009 at 03:35 AM.

  5. Internet, Programming and Graphics   -   #5
    iLOVENZB's Avatar FST Crew BT Rep: +1
    Join Date
    Sep 2008
    Location
    Land gurt by sea
    Posts
    8,331
    You all sure? Worked for me.

    What's meant to happen is all the images swirl around.

    Make sure you searched through Google images (and not Google 'web'), then remove the URL and add

    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.to

    PS: I used FF?
    Last edited by iLOVENZB; 04-10-2009 at 09:28 AM.

  6. Internet, Programming and Graphics   -   #6
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    21,669
    Your code was cut off.
    And btw it works on any page. Even here.

    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()',50); void(0);

  7. Internet, Programming and Graphics   -   #7
    KFlint's Avatar ... BT Rep: +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35
    Join Date
    Mar 2007
    Posts
    4,056
    Yup, and the result here is far more interesting

    DOM manipulation brings joy in our lives
    Last edited by KFlint; 04-10-2009 at 05:36 PM. Reason: Automerged Doublepost

  8. Internet, Programming and Graphics   -   #8
    Skiz's Avatar (_8(I)
    Join Date
    May 2003
    Location
    CO
    Age
    46
    Posts
    22,943
    Still doesn't work for me.

    tescos code, when entered, simply removes all the images from the page.
    Last edited by Skizo; 04-10-2009 at 10:03 PM.


    yo

  9. Internet, Programming and Graphics   -   #9
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    21,669
    Quote Originally Posted by Skizo View Post
    Still doesn't work for me.

    tescos code, when entered, simply removes all the images from the page.
    scroll to the top.

  10. Internet, Programming and Graphics   -   #10
    backlash's Avatar usenet lover
    Join Date
    Aug 2003
    Location
    in your dreams
    Posts
    1,579
    thanks! NOW it works. Cool stuff.

Page 1 of 5 1234 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •