This script takes simple DIV elements and makes them change state when you mouseover, mouseout, and press on them.All you have to do is create your DIV elements, create 3 stylesheet rules, and run a javascript command for each 'class' of button. |
Over 2000+ free Javascript
at JavaScriptBank.com Website
.test { width:150px; text-align:left; color:black; font-size:9pt; font-family:verdana; font-weight:bold; background-color:#FFDDFF; border-color:#FFDDFF; border-width:2px; border-style:solid; padding:4 6 4 6; } |
.testhover { width:150px; text-align:left; color:black; font-size:9pt; font-family:verdana; font-weight:bold; background-color:#FE95FF; border-color:#FE95FF; border-width:2px; border-style:outset; padding:4 6 4 6; } |
.testpress { width:150px; text-align:left; color:black; font-size:9pt; font-family:verdana; font-weight:bold; background-color:#FE95FF; border-color:#FE95FF; border-width:2px; border-style:inset; padding:6 6 2 8; } |