td height="25" align="center" onclick="temp.location.href='/';this.className='click'" class="Normal"  >链接一</td>
你多设置两个id不就解决了

解决方案 »

  1.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var pro=null;
    function ct(obj)
    {
    obj.style.backgroundColor="red"
    if (pro!=null)
    pro.style.backgroundColor="white";
    pro=obj;
    }
    //-->
    </SCRIPT>
    </HEAD><BODY>
    <a href="#" onclick="ct(this)">aaaa</a>
    <a href="#" onclick="ct(this)">aaaa</a>
    <a href="#" onclick="ct(this)">aaaa</a>
    <a href="#" onclick="ct(this)">aaaa</a>
    <a href="#" onclick="ct(this)">aaaa</a>
    <a href="#" onclick="ct(this)">aaaa</a>
    </BODY>
    </HTML>