Forum Moderators: open

Message Too Old, No Replies

Dreamweaver Question

         

NeedScripts

10:27 am on Jul 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Whenever I am working with dreamweaver I have noticed that it automatically insterts below javascript :

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

I have figured out a way of taking care of this script and not allowing it to be inserted on the page, but does anyone know if this script is of any real use?

Thanks for the help.

NS

stever

10:43 am on Jul 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As the script says, it reloads the page on a resize in N4 (which can break the page in some versions). I suppose its value depends on whether you support that browser.

There are also versions available for Opera and for N4 when Flash and layers are used on the same page.

Maxformed

1:21 pm on Jul 3, 2003 (gmt 0)

10+ Year Member



As stever said, it's a reload for NN4 - you can turn off the auto insert in your preferences.

Max