Forum Moderators: open

Message Too Old, No Replies

layer

explications

         

masterjr

2:29 am on Dec 1, 2001 (gmt 0)

10+ Year Member



Hello.
I want to know what the layer are made for in a web site?where is the inetrest to use it?And which are the visual effect on the design?
thank you.

tedster

4:34 am on Dec 1, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Netscape 4 introduced the <layer> tag. It allowed people to place content in separate "containers" called layers and place them anywhere on the page, even on top of each other. However, the <layer> tag never made into the official W3C recommendations for HTML.

Today people often use the word "layer" to indicate a <div> that is placed in a specific position on the page, even along the "z-index" [that is, apparently on top of, or beneath, other page elements.]

Positioning a div wherever you want on a page looks a lot like having different pieces of your page on transparent layers, and then overlaying the layers however and wherever you want. Using divs or "layers", it is very easy to create and maintain special styles inside each <div> or layer without affecting the appearnce of the rest of the page.

By adding JavaScript, div's can be made to appear, disappear, or move around the page in response to user actions, time elapsed, or other variables you choose. Some interesting animation-like effects can be created by these more advanced uses of layers. This technique of combining Cascading Style Sheets with JavaScript is called DHTML.

MikeFoster

4:47 am on Dec 1, 2001 (gmt 0)

10+ Year Member



Excellent description, tedster!

masterjr

11:23 am on Dec 1, 2001 (gmt 0)

10+ Year Member



Thank you for those exellent actulisation.
See you again.