whats this do!!

Discussion in 'JavaScript' started by Jim bob 9 pants, Apr 3, 2006.

  1. #1
    function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);

    and do I need it??

    Thanks
     
    Jim bob 9 pants, Apr 3, 2006 IP
  2. sji2671

    sji2671 Self Made Mind

    Messages:
    1,991
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    170
    #2
    sji2671, Apr 3, 2006 IP
  3. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #3
    merely there for older versions of netscape that screw up the display when resized
     
    frankcow, Apr 13, 2006 IP
  4. Jim bob 9 pants

    Jim bob 9 pants Peon

    Messages:
    890
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks Frank - I have scrubbed it now, if they are using old Netscape tough shit!!
     
    Jim bob 9 pants, Apr 14, 2006 IP
  5. search_engine_optimizer

    search_engine_optimizer Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes, I agreed that older versions of netscape screw up the display when resized. I have the same problem with one of my website.
     
    search_engine_optimizer, Sep 30, 2006 IP
  6. alvinzxx

    alvinzxx Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Old version netscape make me lot of problems...
    I'm really sick on it...lol
     
    alvinzxx, Nov 21, 2006 IP
  7. vid

    vid Peon

    Messages:
    209
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Aaaaaaaaaaaaaaaaaaaaaaaaaaaa, don't even remind me, I had a LOT LOT LOT problems with old version!!!!!! But now it seems to be OK :)
     
    vid, Nov 22, 2006 IP