|
||
| Inside Technique : Highlight Button Style sheets and the full event model are exposed on the built-in controls. Try the button below: DescriptionA different style rule is displayed when the mouse goes over, down, and up over the button. For this button, the following classes are defined:
.over {color:yellow; background: navy}
.down {color:yellow; background: navy; font-style: italic}
Highlight Button
<INPUT
TYPE="Button"
ONMOUSEOVER="this.className='over';"
ONMOUSEOUT="this.className='';"
ONMOUSEDOWN="this.className='down';"
ONMOUSEUP="this.className='over';"
VALUE="Click Me"
ONCLICK="this.value='Ouch - You Clicked Me!'">
© 1997-2000 InsideDHTML.com, LLC. All rights reserved. |