<html>
<head>
<title>Abakada CSS Demo: background Attribute</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<style type="text/css">
<!--
.style1 {
background: black url( "../shared/images/earth.gif" )
no-repeat top right }
.style2 {
background: black url( "../shared/images/jupiter.gif" )
no-repeat bottom left }
#msg { color: beige; padding: 15mm }
-->
</style>
</head>
<body>
<!-- #include virtual="~/shared/top.inc" -->
<div class="header"><h2>Abakada CSS Demo: <span class="hilite">background</span> Attribute</h2></div>
<hr size=1 width=92%>
<center>
<h5>This example uses calls to an embedded stylesheet to dynamically set an element's background using the composite <b>background</b> style attribute.</h5>
<p id="msg" class="style1"
onmouseover="this.className='style2'"
onmouseout="this.className='style1'">
Move the mouse over to apply a style class that changes this element's background color, image and position.
Move the mouse out to reset.
</p>
<img src="../shared/images/earth.gif" width=1 height=1 style="visibility: hidden">
<img src="../shared/images/jupiter.gif" width=1 height=1 style="visibility: hidden">
</center>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>