Using the Netscape Resize Layer Fix


Netscape 4.x versions have a problem with layers that occurs when the user resizes the browser window: The layer changes its shape when the browser window is resized, which can cause problems with the page. You can fix this problem by inserting the Netscape Resize Layer Fix JavaScript code into your document whenever you use layers. The JavaScript code fixes the Netscape 4.x problem and does not affect other browsers.

Dreamweaver will automatically add the Netscape Resize Fix when you create a layer in a document. When you delete all layers from a document you should run this command and remove the code if the script is still in your document. Because you converted from layers to a table in the previous exercise, you'll remove the script now because it is no longer needed.

1.

In the layers_tables.html document, choose Commands > Add/Remove Netscape Resize Fix.

In the Add/Remove Netscape Resize Fix dialog box that opens, you can either add or remove the JavaScript code, depending on whether or not the script is in the document. The code causes the page to reload if the user resizes the browser window. Dreamweaver adds this code to your page automatically. If it is not in a page that uses layers, you can add it easily with this dialog box.

The Netscape Resize Fix Javascript is located in the head of the document, before the <body> tag and can be seen in either Split or Code view. You'll work with the code more in Lesson 16.

2.

Click Remove.

The Netscape Resize Fix JavaScript code is removed from the page.

3.

Save the layers_tables.html document.

You can close this file.




Macromedia Dreamweaver 8(c) Training from the Source
Macromedia Dreamweaver 8: Training from the Source
ISBN: 0321336267
EAN: 2147483647
Year: 2006
Pages: 326

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net