what your website images do when your not looking.

Discussion in 'General Chat' started by Dude111, Oct 11, 2006.

  1. Winagain

    Winagain Well-Known Member

    Messages:
    918
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #41
    cool. I liked the effect.
    nice way to spend 2 minutes :p
     
    Winagain, Oct 21, 2006 IP
  2. Froggie

    Froggie Well-Known Member

    Messages:
    665
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    120
    #42
    1. go to your website (should have some images on it at least) or any other site
    2. execute the following javascript in the address bar (works in ie)

    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()',5); void( 0 );
     
    Froggie, Oct 27, 2006 IP
  3. PwrUps

    PwrUps Peon

    Messages:
    377
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #43
    I think this has been posted quite a few times already... pretty old.
     
    PwrUps, Oct 27, 2006 IP
  4. timsdd

    timsdd Peon

    Messages:
    21,102
    Likes Received:
    1,019
    Best Answers:
    0
    Trophy Points:
    0
    #44
    two days ago to be exact! {Oct 25th 2006, 10:05 pm} This is fu**ing cool

    and who knows how many times b4 ;)
     
    timsdd, Oct 27, 2006 IP
    ahkip likes this.
  5. Froggie

    Froggie Well-Known Member

    Messages:
    665
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    120
    #45
    doh!................
     
    Froggie, Oct 28, 2006 IP
  6. chewbacca

    chewbacca Peon

    Messages:
    132
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #46
    It doesn't matter if it's old. Not everyone's seen it before. :)
     
    chewbacca, Oct 28, 2006 IP
  7. timsdd

    timsdd Peon

    Messages:
    21,102
    Likes Received:
    1,019
    Best Answers:
    0
    Trophy Points:
    0
    #47
    which is fine in some cases but not in others...some people loathe duplicate threads.

    I'm always paranoid, so I use the search feature b4 I start a new thread (not that it correlates in this case).
     
    timsdd, Oct 28, 2006 IP
  8. exponent

    exponent Peon

    Messages:
    1,243
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #48
    Very cool trick with javascript. Paste the following in to your address bar while looking at a page with a lot of pictures. (google images works good like [​IMG]) If you thought it was cool, showing a little green is always appreciated =)


    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()',5); void(0);
    Code (markup):
     
    exponent, Apr 8, 2007 IP
    8everything and mitcharr like this.
  9. BLaZeR

    BLaZeR Peon

    Messages:
    1,567
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #49
    lol old news for me though,but thanks for the share
     
    BLaZeR, Apr 8, 2007 IP
  10. Shady

    Shady Active Member

    Messages:
    330
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #50
    Pretty neat caught me offguard!! Anything else like this??
     
    Shady, Apr 8, 2007 IP
  11. exponent

    exponent Peon

    Messages:
    1,243
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #51
    You could reverse the rotation and change the speed by tinkering with the code.

    Example:

    Change the 5 in setInterval(’A()’,5); to a bigger number… like 50 to slow it down. Or you could try this:

    function crazyImages() {
    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;
    var A = function(){
    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,5);
    void(0);
    }
    Code (markup):
     
    exponent, Apr 8, 2007 IP
  12. 8everything

    8everything Peon

    Messages:
    16,349
    Likes Received:
    903
    Best Answers:
    0
    Trophy Points:
    0
    #52
    Hmm pretty interesting, not a huge fan of java though :p
     
    8everything, Apr 8, 2007 IP
  13. Zerosleep

    Zerosleep Established User

    Messages:
    7,999
    Likes Received:
    559
    Best Answers:
    1
    Trophy Points:
    405
    #53
    Old trick dude, I know this for about a 2 years now :D
    Anyways Thanks for sharing ;)
     
    Zerosleep, Apr 8, 2007 IP
  14. uttoransen

    uttoransen Prominent Member

    Messages:
    8,227
    Likes Received:
    550
    Best Answers:
    0
    Trophy Points:
    320
    #54
    it is nice, and i was not knowing about it:rolleyes: ! if you have somemore, please give me, thanks:D
     
    uttoransen, Apr 8, 2007 IP
  15. jdR!pper

    jdR!pper Peon

    Messages:
    4,974
    Likes Received:
    564
    Best Answers:
    0
    Trophy Points:
    0
    #55
    Looks nice but definitely not new. Thanks for the share anyway. :D

    --Joe
     
    jdR!pper, Apr 9, 2007 IP
  16. NetworkTown.Net

    NetworkTown.Net Well-Known Member

    Messages:
    2,022
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    165
    #56
    Lol, open a website in yuor browser and then copy and paste the code below into your address bar then hit enter see what happens lol.

    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);
    Code (markup):
    BTW this works best on phpbb forums.

    ____________
    Just to let people know this will NOT harm your pc.
     
    NetworkTown.Net, Apr 12, 2007 IP
  17. digger22

    digger22 Banned

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #57
    wow...this is realy nice.
     
    digger22, Apr 12, 2007 IP
  18. Crux

    Crux Well-Known Member

    Messages:
    704
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #58
    you like it?


    try this one :D

    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(%22img%22); 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)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R+ +}setInterval('A()',5); void(0);
    Code (markup):

    for some reason, works better in IE
     
    Crux, Apr 12, 2007 IP
  19. shadyfellow

    shadyfellow Active Member

    Messages:
    122
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    88
    #59
    haha thats very nice
     
    shadyfellow, Apr 12, 2007 IP
  20. M@ko

    M@ko Banned

    Messages:
    71
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #60
    Lol thanks for this, that is quite clever, it really does mess up websites, my DigitalPoint page is all wierd now :p!

    Thanks for sharing!
     
    M@ko, Apr 12, 2007 IP