Programming tricks

Discussion in 'Funny Stuff: Jokes, Quizzes, Games & Pics' started by Pecker, Jun 25, 2007.

  1. Pecker

    Pecker Retired Moderator
    Gold Member

    Joined:
    Mar 5, 2002
    Messages:
    83,922
    Likes Received:
    34
    I found this in a Google group:

    1. Go to Google
    2. Click Images
    3. Type "dogs" or any other word.
    4. You will get a page which is having full of images
    5. Then delete the URL from the address bar and paste the following script

    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)

    I have no idea how this works but I'll bet there are several of you at LPSG who know some tricks of your own.

    ?
     
  2. nakedwally

    Gold Member

    Joined:
    Dec 3, 2006
    Messages:
    4,013
    Albums:
    2
    Likes Received:
    28
    Gender:
    Male
    Location:
    all over
    whats supposed to happen?
     
  3. Quite Irate

    Quite Irate Member

    Joined:
    Apr 4, 2007
    Messages:
    720
    Albums:
    1
    Likes Received:
    4
    ^ Didn't work in Firefox. I'm guessing it's the code that makes the images float around the page, though. Am I right? I've seen something like this before.
     
  4. nakedwally

    Gold Member

    Joined:
    Dec 3, 2006
    Messages:
    4,013
    Albums:
    2
    Likes Received:
    28
    Gender:
    Male
    Location:
    all over
    i tried it in both fire fox and internet explorer it didn't do anything
     
  5. ganja4me

    Gold Member

    Joined:
    Apr 16, 2007
    Messages:
    1,335
    Albums:
    1
    Likes Received:
    1
    Gender:
    Male
    Location:
    U.S.
    It said error on page
     
  6. snoozan

    Gold Member

    Joined:
    Sep 23, 2006
    Messages:
    3,568
    Likes Received:
    4
    nothing.
     
  7. crescendo69

    Gold Member

    Joined:
    Aug 27, 2006
    Messages:
    8,142
    Likes Received:
    20
    Gender:
    Male
    Location:
    Knoxville, TN
    Nothing on IE, either.
     
  8. Quite Irate

    Quite Irate Member

    Joined:
    Apr 4, 2007
    Messages:
    720
    Albums:
    1
    Likes Received:
    4
    You have to replace part of the URL, I think.
     
  9. yngjock20

    Gold Member

    Joined:
    Apr 21, 2006
    Messages:
    4,203
    Albums:
    1
    Likes Received:
    147
    Gender:
    Male
    Location:
    The Other Valley
    I did it and it still didn't do anything.Both IE and firefox. I think there's a step missing.
     
  10. Pecker

    Pecker Retired Moderator
    Gold Member

    Joined:
    Mar 5, 2002
    Messages:
    83,922
    Likes Received:
    34
    I'm so embarrassed. It worked for me the first time but when I returned it was dead. Recopying it from the source did no good (it's in a private group.) :pat:
     
  11. agnslz

    Gold Member

    Joined:
    Jun 29, 2006
    Messages:
    4,778
    Likes Received:
    14
    Pecker, I'm sure it was wonderful!:biggrin::smile:
     
Draft saved Draft deleted