Changes

Jump to: navigation, search

JavaScript and CSS - Dynamic Styles and Layers

No change in size, 19:04, 17 May 2007
Using overlying Layers
In addition to hiding and showing elements in a web poage sit is also possible to position elements so that they overlap. JavaScript can then be used to control which element appears on top of the other layers.
Layers are defined using the <nowiki><div> and <iframe></nowiki> tags. The <nowiki><div></nowiki> tag is used to define blocks of content that are contained with the current web page. In contrast the <nowokinowiki><iframe></nowiki> tag is used when the content is to loaded from another HTML file.
In this example we will look at the <nowiki><div></nowiki> tag but the concepts are the same for nowoki><iframe></nowiki>.

Navigation menu