Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
cleung
Joined: Nov 22, 2004
# Posts: 42
|
Posted: 2005-Jan-21 23:46
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" &&(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
|
Posted: 2005-Jan-22 10:57
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
|
Posted: 2005-Jan-22 13:45
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
|
Posted: 2005-Jan-28 16:16
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:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- 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
|
|