Changes

Jump to: navigation, search

JavaScript and CSS - Dynamic Styles and Layers

473 bytes added, 18:45, 17 May 2007
Making Basic Dynamic Style Changes
</pre>
 
== Hiding and Showing Content suing JavaScript ==
 
The next step is to look at how to hide and show contents using CSS and JavaScript. First lets create some paragraphs of text in HTML:
 
<pre>
 
<p id="layer1">This is layer 1</p>
<p id="layer2">This is layer 2</p>
<p id="layer3">This is layer 3</p>
 
</pre>
 
Next we need to define some styles for these layers so that we can distinguish between them (for details on CSS see [[Understanding Cascading Style Sheets (CSS)]]:

Navigation menu