nj web site design, atlanta web site design, web site design denver, training and development,
 
    
 
web site design, custom web site design, ecommerce web site design, web site design company web site design chicago, web site design services, professional web site design, free web site web site design san diego, web site design uk, business web site design, small business web site real estate web site design, web site design development, web site design firm, web site design flash web site design, web site design and hosting, web site design software, toronto web site e commerce web site design, wedding web site design, graphic design web site, web site design tampa web site design, web site design service, web site design new york, web site design seo web site design, seattle web site design, web site design bay area, cheap web site design
page 15 of 28
 

Using Layers

Layers are used to accurately and easily position other objects such as images, text, and tables. Even though tables are the HTML building block for positioning objects on a web page, layers make a convenient anchor point for tables when you need to specify the coordinates at which a table should be located.

Why use layers?
Layers are great for showing content that is necessary for viewers experience but not critical to using your website. For instance if you have a large body of text that contains many industry specific terms. Your viewer may not understand the terms and you don't have enough space on the page to define every term. What you can do is add a layer that contains the definition. You can make the term a link that triggers the layer visibility.

Try it here.

Here's what the code looks like:
<div id="Layer1" style="position:absolute; width:169px; height:63px; z-index:1; left: 210px; top: 271px; visibility: hidden;">Table goes here</div>

Layers can be unpredictable in Netscape or lower versions of IE. It should only be used for IE browsers 4.0 or higher.

 

 

To add a layer to your document:

  1. Place the cursor in your document in Code View.
  2. Select INSERT/LAYER from the toolbar.
  3. A default layer is added to your page along with an icon representing the place in the HTML document.
  4. You can insert a table, image or any other content to the layer.
  5. You can add a background color to the table you place in the layer like I did in the above example.
  6. You can resize the layer by grabbing and dragging any of the resize handles around the border of the layer.
  7. To select the visibility of the layer open the LAYER INSPECTOR in the lower right hand corner of Dreamweaver and select the EYE icon. There are 3 visibility states: visible, hidden, inherit and default. Set your layer to HIDDEN.






  8. Now that you've got your layer you need a way to trigger it's visibility so your viewers can see it.
  9. Type the following: "Click Here".
  10. Highlight the text using your cursor.
  11. With the text selected pick SHOW-HIDE LAYERS from the Behaviors menu.
  12. In the resulting dialog box select SHOW then OK to close the box.
  13. Now go back to the Behaviors menu and make sure that OnMouseOver is selected. If it is not selected click the behavior to highlight it and pick OnMouseOver from the dropdown arrow to the right.
  14. Repeat the process but this time select HIDE LAYER in the SHOW-HIDE LAYERS dialog box and OnMouseOut from the Behaviors menu.
  15. That's all there is to it.
web site, dating web site, web site design, internet web site, christian web site, submit web site, web site promotion, web site creation
Tell a Friend