<!--把如下代码加入<body>区域中-->
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function doColor(item, color, bg) {
item.style.color = color; // changes text color
item.style.backgroundColor = bg; // changes background
}
function undoColor(item) {
item.style.color = "#000000"; // sets color back to black
item.style.backgroundColor = ""; // sets background to default
}
// End -->
</script>
<a name="link1" href="http://www.internet.com/" onmouseover="doColor(link1, 'yellow','black');" onmouseout="undoColor(link1);">internet.com</a>
<p>
<a name="link2" href="http://www.knowsky.com/" onmouseover="doColor(link2, 'blue','red');" onmouseout="undoColor(link2);">www.knowsky.com</a>