<html>
<head>
<title>Abakada CSS Demo: text-decoration Attribute</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<style type="text/css">
<!--
button { background: #345; color: ddf; font: bold }
-->
</style>
</head>
<body>
<!-- #include virtual="~/shared/top.inc" -->
<div class="header"><h2>Abakada CSS Demo: text-decoration Attribute</h2></div>
<hr size=1 width=92%>
<center>
<h5>This example shows the effects of applying the different values possible for the CSS <b>text-decoration</b> style attribute.</h5>
<p id="msg">Select from the text-decoration options below to see how the style is applied, and note the resulting CSS syntax for the style declaration. </p>
<h5 id="theSyntax">Syntax { text-decoration: none }</h5>
<table cellpadding=5>
<tr>
<td>Options</td>
<td><select name="units" tabindex=1 onchange="chgProp ( this.value )">
<option value="none">none
<option value="underline">underline
<option value="overline">overline
<option value="line-through">line-through
<option value="blink">blink
</select></td>
<td><button onclick="reset ( )">Reset</button></td>
</tr>
</table>
<p class="note">NOTE: The BLINK option is not supported in all browsers. </p>
</center>
<script language="JavaScript">
<!--
function chgProp ( td ) {
msg.style.textDecoration = td;
txt = "Syntax { text-decoration: " + td + " }";
theSyntax.innerText = txt;
}
function reset ( ) {
units.value = "none";
msg.style.textDecoration = "none";
theSyntax.innerText = "Syntax { text-decoration: none }";
}
//-->
</script>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>