Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

cleung
Joined: Nov 22, 2004
# Posts: 42

View the profile for cleung Send cleung a private message

Posted: 2005-Jan-21 23:46
Edit Message Delete Message Reply to this message

Whenever I create layers in Dreamweaver, the program automatically adds in the following Java 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"wink&&(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>

What are these lines for? I have deleted them from my pages and they still seem to work fine.





g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10418

View the profile for g1smd Send g1smd a private message

Posted: 2005-Jan-22 10:57
Edit Message Delete Message Reply to this message

As it says in the comments right there in the code:

//reloads the window if Nav4 resized

which fixes a display bug in Netscape 4 if you resize a window you are reading at the time.



cleung
Joined: Nov 22, 2004
# Posts: 42

View the profile for cleung Send cleung a private message

Posted: 2005-Jan-22 13:45
Edit Message Delete Message Reply to this message

Is there anyway to disable this automatic addition by Dreamweaver? I have had to manually delete it every time so far.




kevchadders
Joined: Feb 18, 2002
# Posts: 581

View the profile for kevchadders Send kevchadders a private message

Posted: 2005-Jan-28 16:16
Edit Message Delete Message Reply to this message

Its been a while since i used Dreamweaver but there might be something in the menu's to tell it that you don't mind your web page not being compatible with Nav4.

Maybe that would stop it writing all that extra code you do not want.


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions