Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Interesting Bit of Code

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Orlando FL
    Age
    70
    Posts
    1,316

    Interesting Bit of Code

    Anyone seen this? You paste this into your browser address bar and hit enter no matter what page you happen to be on...Watch the show.......

    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++}se tInterval('A()',5); void(0);

  2. #2
    Join Date
    Aug 2006
    Location
    192.168.10.100
    Age
    39
    Posts
    4,486
    OLD! Just like you....j/k

    I saw that on one of my other forums a couple weeks ago...
    "Best to keep your mouth shut and be thought a fool than to open your mouth and remove all doubt."

    "Honesty is the First Chapter in the Book of Wisdom" - Thomas Jefferson

    Desktop:
    AMD Phenom II x6 1100T @ 3.3Ghz
    MSi 890FXA-GD70
    16GB G.Skill DDR3-1600
    Asus HD6950 2GB GDDR5 PCI-Ex16
    4x 1.5TB WD SATA w/64MB cache in RAID10
    2x Asus 22x DVD/CD +/-RW DL SATA
    Rosewill Xtreme Series 950W PSU
    2x 23" 5ms Asus Widescreen LCD
    Laptop:
    15" Aluminum MacBook Pro
    Intel Core 2 Duo 2.53Ghz
    4GB DDR3 @ 1067MHz
    320GB SATA 7200RPM HDD

    **View My Forum**

  3. #3
    Join Date
    Aug 2006
    Location
    127.0.0.2
    Age
    52
    Posts
    2,362
    doesn't do anything in mozilla.
    back from hiatus.

  4. #4
    Join Date
    Aug 2006
    Location
    192.168.10.100
    Age
    39
    Posts
    4,486
    He gave you the wrong code....Below is the correct 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);
    "Best to keep your mouth shut and be thought a fool than to open your mouth and remove all doubt."

    "Honesty is the First Chapter in the Book of Wisdom" - Thomas Jefferson

    Desktop:
    AMD Phenom II x6 1100T @ 3.3Ghz
    MSi 890FXA-GD70
    16GB G.Skill DDR3-1600
    Asus HD6950 2GB GDDR5 PCI-Ex16
    4x 1.5TB WD SATA w/64MB cache in RAID10
    2x Asus 22x DVD/CD +/-RW DL SATA
    Rosewill Xtreme Series 950W PSU
    2x 23" 5ms Asus Widescreen LCD
    Laptop:
    15" Aluminum MacBook Pro
    Intel Core 2 Duo 2.53Ghz
    4GB DDR3 @ 1067MHz
    320GB SATA 7200RPM HDD

    **View My Forum**

  5. #5
    Join Date
    Aug 2006
    Location
    Orlando FL
    Age
    70
    Posts
    1,316
    Quote Originally Posted by Gizmokid2005 View Post
    He gave you the wrong code....Below is the correct 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);
    Your code doesn't work

  6. #6
    Join Date
    Aug 2006
    Location
    The Middle
    Age
    80
    Posts
    4,079
    Gizmo's code works for me on both IE and Firefox...sorry F1 yours did not
    And it was new for me, never seen this before.

  7. #7
    Join Date
    Aug 2006
    Location
    Pasadena, MD
    Posts
    564
    is that the tornado thing?

  8. #8
    Join Date
    Aug 2006
    Location
    127.0.0.2
    Age
    52
    Posts
    2,362
    yea, more or less...
    back from hiatus.

  9. #9
    Join Date
    Aug 2006
    Location
    192.168.10.100
    Age
    39
    Posts
    4,486
    Yes, F1, I tried your code in both IE7 and FF2.0 and it didn't work in either...but my code worked in both....who knows...
    "Best to keep your mouth shut and be thought a fool than to open your mouth and remove all doubt."

    "Honesty is the First Chapter in the Book of Wisdom" - Thomas Jefferson

    Desktop:
    AMD Phenom II x6 1100T @ 3.3Ghz
    MSi 890FXA-GD70
    16GB G.Skill DDR3-1600
    Asus HD6950 2GB GDDR5 PCI-Ex16
    4x 1.5TB WD SATA w/64MB cache in RAID10
    2x Asus 22x DVD/CD +/-RW DL SATA
    Rosewill Xtreme Series 950W PSU
    2x 23" 5ms Asus Widescreen LCD
    Laptop:
    15" Aluminum MacBook Pro
    Intel Core 2 Duo 2.53Ghz
    4GB DDR3 @ 1067MHz
    320GB SATA 7200RPM HDD

    **View My Forum**

  10. #10
    NEITHER worked for me; IE or Firefox.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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