intresting javascript code

Discussion in 'JavaScript' started by jawednazarali, Oct 2, 2006.

  1. #1
    open yahoo.com in IE. Once it is loaded and paste following script in the address bar and press enter.

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

    share with us if you have any interesting script.
     
    jawednazarali, Oct 2, 2006 IP
  2. BurgerKing

    BurgerKing Active Member

    Messages:
    397
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    58
    #2
    That, I gotta say, is cool.
     
    BurgerKing, Oct 3, 2006 IP
  3. geniosity

    geniosity Peon

    Messages:
    293
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    that is pretty damn cool. Obviously it's just moving images... So go check it out at Google's homepage. It's cooler because their logo is actually 3 or 4 images...
     
    geniosity, Oct 3, 2006 IP
  4. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #4
    this has been posted several times in this forum already
     
    frankcow, Oct 4, 2006 IP
  5. jawednazarali

    jawednazarali Guest

    Messages:
    254
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hmmm, i didn't know.
    why don't you post something interesting like this?
     
    jawednazarali, Oct 4, 2006 IP
  6. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I don't see anything funny in there :confused:

    Sorry, Forbidden.
    You don't have permission to access this URL on this server.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 
    
    Please check the URL for proper spelling and capitalization. If you're having trouble locating a destination on Yahoo!, try visiting the Yahoo! home page or look through a list of Yahoo!'s online services. Also, you may find what you're looking for if you try searching below.
    
    Code (markup):
     
    Pat Gael, Oct 4, 2006 IP
  7. geniosity

    geniosity Peon

    Messages:
    293
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Are you using IE?
     
    geniosity, Oct 5, 2006 IP
  8. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #8
    what do you mean?
     
    frankcow, Oct 5, 2006 IP
  9. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yes, with IE I only got the 404 message above :rolleyes:
     
    Pat Gael, Oct 5, 2006 IP
  10. jawednazarali

    jawednazarali Guest

    Messages:
    254
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I mean I didn't know that you used this script before. Share with us something interesting if you have.
     
    jawednazarali, Oct 5, 2006 IP
  11. jawednazarali

    jawednazarali Guest

    Messages:
    254
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #11
    It could be possible you are using an authenticated page. Try out yahoo main page.

    Did you use this script on www.yahoo.com?
     
    jawednazarali, Oct 5, 2006 IP
  12. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #12
    I have many interesting JavaScripts, but most of them solve some sort of business or UI problem, not so much used for fun

    You can check out my blog if you want, under JavaScript and DHTML you'll find lots of good stuff: www.justin-cook.com
     
    frankcow, Oct 6, 2006 IP
  13. jawednazarali

    jawednazarali Guest

    Messages:
    254
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Thanks for the url its great
     
    jawednazarali, Oct 7, 2006 IP
  14. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #14
    thanks for the compliment
    I've put a lot of time into the site, it finally seems to be paying off
     
    frankcow, Oct 7, 2006 IP