It's worth exploring jQuery and incorporating unobtrusive javascript into your workflow.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
Simply include the above script to access the jQuery library from Google.
You can then use an external stylesheet to customize your design.
<div id="container"> Register </div>
Next, create an external stylesheet like app.css:
#container {border:1 #FF0 solid; background-color:#999;text-align:left;}
Additionally, you can incorporate an external script such as app.js
$('#container').mouseout(function() {
$('#container').css('backgroundColor', '#DDD')
});
Remember to link the external css and js files appropriately. The external stylesheet should be linked after the jQuery script.
http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js
<script src="app.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="app.css">
You can tweak the script to add more functionality triggered by mouse events:
$('#container').mouseout($('#container').css('backgroundColor', '#DDD'))
$('#container').mouseover($('#container').css('backgroundColor', '#DDD'))
$('#container').mouseenter($('#container').css('backgroundColor', '#DDD'))
$('#container').mouseup($('#container').css('backgroundColor', '#DDD'))
For a comprehensive list of available mouse event functions, check out this resource.