Use a:hover to change the color of the anchor.
Check this example that I have made for you: http://jsfiddle.net/DNmGt/
HTML
html Code:
<ul>
<li><a href="#">Menu 1</a></li>
<li><a href="#">Menu 2</a></li>
<li><a href="#">Menu 3</a></li>
</ul>
CSS
css Code:
ul{list-style: none;}
li{float: left; width: 75px;}
li a{text-decoration:none; }
li a:hover{background-color: #c2c2c2;}
If you really want it the other side, you could use the following jQuery code:
Code:
$('#nav li').hover(function(){
$(this).css('background-color', '#c2c2c2');
}, function(){
$(this).css('background-color', 'transparent');
});
HTML
html Code:
<ul id="nav">
<li><a href="#">Menu 1</a></li>
<li><a href="#">Menu 2</a></li>
<li><a href="#">Menu 3</a></li>
</ul>
CSS
css Code:
ul{list-style: none;}
li{float: left; width: 75px; text-align: center;}
li a{text-decoration:none; }
See it in action: http://jsfiddle.net/w3BAF/