The code to do this uses the onMouseOver event to check whether the user is hovering over the link, and the simply sets the document.bgColor to the new color value.
Note that you can also use hexadecimal color codes here with the same effect. Here's the code: