Welcome to WebmasterWorld Guest from 54.226.46.6

Forum Moderators: open

Message Too Old, No Replies

JavaScript

what's this?

     

keyplyr

8:27 am on Dec 17, 2001 (gmt 0)

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Could someone please explain this?

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

nicebloke

11:30 am on Dec 17, 2001 (gmt 0)

10+ Year Member



Looks like the Dreamweaver command to fix some Netscape 4* rendering bug.

[cauzway.net...]

knighty

3:58 pm on Dec 17, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yup,

Thats right, normally if you try to resize Netscape the page can screw up especially if you are using layers.

So as soon as the window is made smaller/bigger this baby kicks in and refreshes the page and thus avoiding usual garbled Netscape page.

keyplyr

8:14 pm on Dec 17, 2001 (gmt 0)

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Ah... thanks

This is set up as a JavaScript. Would this aid in pop-up windows made with JavaScript? And could this be run as a stand alone JavaScript called from the HEAD or is the rest of the Dreamweaver stuff required?

txbakers

8:24 pm on Dec 17, 2001 (gmt 0)

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member



It's just a JavaScript. It's only relation to Dreamweaver is the MM_ before everything.

You can use it anywhere you can use a JavaScript.

keyplyr

10:23 pm on Dec 17, 2001 (gmt 0)

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



>You can use it anywhere you can use a JavaScript.

Would/Should I remove the MM_s then?

txbakers

10:35 pm on Dec 17, 2001 (gmt 0)

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member



You don't have to. If you DO remove it, make sure you remove it everywhere it might look for it. Javascript is case sensitive

keyplyr

11:36 pm on Dec 17, 2001 (gmt 0)

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Thanks again.

I have a lot of pop-up windows. I hope the NN4 users benefit by this.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month