<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>
</HEAD><BODY><a name="linkone" href="tx.aspx" onMouseOver="doColor(linkone,'blue','');" onMouseOut="undoColor(linkone);">明天</a>
</BODY>

解决方案 »

  1.   

    定义样式可以用CSS来处理
    <style type="text/css">
    a:link{font-weight : bold ;text-decoration : none ;color : #c00 ;}
    a:visited {font-weight : bold ;text-decoration : none ;color : #c30 ;}
    a:hover {font-weight : bold ;text-decoration : underline ;color : #f60 ;}
    a:active {font-weight : bold ;text-decoration : none ;color : #F90 ;}</style>
    <a href="http://www.163.com" class="a">meixx</a>
    <a href="http://www.163.com">meixx</a>