MaKe DiGiTaLpOiNt Go CrAzY!!!

Discussion in 'General Chat' started by Bondat, Oct 25, 2006.

  1. #1
    Go to Google images and search for any images.

    Then paste this code on your address bar:

    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);


    For example you type digital point on Google images search bar.
    http://images.google.com/images?svnum=10&hl=en&lr=&q=digital+point&btnG=Search

    Then paste the code above on your address bar then you will see a very cool animation. ;)

    source:

    http://stopgeek.com/neat-trick-with-javascript.html
     
    Bondat, Oct 25, 2006 IP
    timsdd, SubmitShop, westoff and 4 others like this.
  2. Crazy4Bass

    Crazy4Bass Well-Known Member

    Messages:
    174
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    138
    #2
    lol.. ok that was pretty cool
     
    Crazy4Bass, Oct 25, 2006 IP
    Bondat likes this.
  3. max pain

    max pain Notable Member

    Messages:
    2,179
    Likes Received:
    521
    Best Answers:
    0
    Trophy Points:
    260
    #3
    yea - its kinda weird all images dissapear and start swirling around on screen
     
    max pain, Oct 25, 2006 IP
    Richie_Ni, Bender and Raj Kumar like this.
  4. kip

    kip Notable Member

    Messages:
    1,521
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    205
    #4
    yeah, thats cool
     
    kip, Oct 25, 2006 IP
  5. Finale

    Finale Peon

    Messages:
    204
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can do it on any site, not just Google Images :)

    Try it on here =D

    //edit

    javascript:R=0; x1=.5; y1=0.5; x2=0; y2=.2; x3=2.6; y3=.5; x4=60; y4=20; x5=70; y5=20; DI=document.getElementsByTagName("embed"); 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);

    Look at the document Tag name part....change it to any html tag and you can make videos/text/images/flash move O_O
     
    Finale, Oct 25, 2006 IP
    MrMOJO likes this.
  6. saadahmed007

    saadahmed007 Admínistratör

    Messages:
    5,272
    Likes Received:
    869
    Best Answers:
    0
    Trophy Points:
    380
    #6
    LOL, This one is extremely funny!
    I did on DigitalPoint!
    [​IMG]
     
    saadahmed007, Oct 25, 2006 IP
  7. Bondat

    Bondat Peon

    Messages:
    2,397
    Likes Received:
    217
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yeah its working on any page. Just a good example is page with standard size of images on it thats why I choose Google Images.
     
    Bondat, Oct 25, 2006 IP
  8. KeithLDick

    KeithLDick Peon

    Messages:
    3,544
    Likes Received:
    206
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Nice find, thanks for sharing Bondat... :D
     
    KeithLDick, Oct 25, 2006 IP
    Richie_Ni and Raj Kumar like this.
  9. Bondat

    Bondat Peon

    Messages:
    2,397
    Likes Received:
    217
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I really enjoy sharing. ;) Thank you that you appreciate it.
     
    Bondat, Oct 26, 2006 IP
  10. SubmitShop

    SubmitShop Banned

    Messages:
    844
    Likes Received:
    106
    Best Answers:
    0
    Trophy Points:
    0
    #10
    It's really nice thanks for sharing mate. :)
     
    SubmitShop, Oct 26, 2006 IP
    Richie_Ni and Raj Kumar like this.
  11. Correctus

    Correctus Straight Edge

    Messages:
    3,453
    Likes Received:
    389
    Best Answers:
    0
    Trophy Points:
    195
    #11
    Good to freak out people.

    IT
     
    Correctus, Oct 26, 2006 IP
    Pammer, timsdd and Richie_Ni like this.
  12. gooster

    gooster Active Member

    Messages:
    471
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    75
    #12
    Pure pain on my eyes, but good fun nonetheless!
     
    gooster, Oct 26, 2006 IP
  13. Mong

    Mong ↓↘→ horsePower

    Messages:
    4,789
    Likes Received:
    734
    Best Answers:
    0
    Trophy Points:
    235
    #13
    It has nothing to do with Google images :)

    You can do same on Yahoo images or Live Images
    or even on any image gallery ;)
     
    Mong, Oct 26, 2006 IP
    Raj Kumar likes this.
  14. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #14
    Wow!!It's really nice.I'm gonna write it down and tell my friends.
    Thanks for sharing.
     
    Richie_Ni, Oct 26, 2006 IP
    Mong and Raj Kumar like this.
  15. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Very interesting great find? :D
     
    Emperor, Oct 26, 2006 IP
    Richie_Ni likes this.
  16. Brennan

    Brennan Notable Member

    Messages:
    3,318
    Likes Received:
    198
    Best Answers:
    0
    Trophy Points:
    240
    #16
    Lol I love it it's so funny but you start getting a headache lol! Whoever made that is a genius ;)
     
    Brennan, Oct 26, 2006 IP
  17. Theozard

    Theozard Active Member

    Messages:
    811
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    68
    #17
    i remember seeing them on orkut too..pretty neat :)
     
    Theozard, Oct 26, 2006 IP
  18. rosiee007

    rosiee007 Notable Member

    Messages:
    3,352
    Likes Received:
    179
    Best Answers:
    0
    Trophy Points:
    230
    #18
    I cant seem to make it work for me.. i get directed to a new page for "Quick Search" :(
     
    rosiee007, Oct 26, 2006 IP
    Raj Kumar likes this.
  19. iatbm

    iatbm Prominent Member

    Messages:
    5,151
    Likes Received:
    352
    Best Answers:
    0
    Trophy Points:
    360
    #19
    very cool .... :D
     
    iatbm, Oct 26, 2006 IP
    Raj Kumar likes this.
  20. andysyme

    andysyme Member

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #20
    Wow!!! My head hurts!

    Nice find tho

    Andy
     
    andysyme, Oct 26, 2006 IP