Results 1 to 5 of 5

Thread: What is this JS???? [Resolved]

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    What is this JS???? [Resolved]

    I am fixing the HTML and CSS at a page for a friend of my that he have made in DreamWeaver.

    And DW have added some JS. What does it do...? Is it necessary to have it at all?


    Code:
    <script language="JavaScript" type="text/JavaScript">
    		<!--
    			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);
    		//-->
    		</script>

    Is it some reload function if the browser changes size or something?
    Last edited by NoteMe; Apr 4th, 2004 at 10:06 AM.

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    Yes, it reloads the page if the user has adjusted the browser size.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Hmmmm...weird...I thought it did that automaticaly...

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I think its to fix a Netscape bug?

  5. #5
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Originally posted by plenderj
    I think its to fix a Netscape bug?
    most likely, as it only runs on netscape v4
    Have I helped you? Please Rate my posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width