没有onmouseclick这个事件的,只有onclick.看看这个行不行:onclick="if(!this.innerHTML)='';"

解决方案 »

  1.   

    <HTML>
    <head>
    <style type="text/css">
    td{ text-align:center}
    .tdOver{border:1px solid;border-color: buttonface threeddarkshadow threeddarkshadow buttonface;cursor:hand;
    }
    </style>
    <script language="javascript">
    function tdOver(curTd){
    curTd.className="tdOver";
    }
    function tdOut(curTd){
    curTd.className="td";
    }
    function tdClick(curTd){
    var tdVal=curTd.innerText;
    if(tdVal=="N/A") return false;
    window.location="http://www.163.com";
    }
    </script>
    </head>
    <BODY>
    <TABLE border=1 width="450">
    <TR>
    <TD>AAA</TD>
    <TD>BBB</TD>
    <TD onMouseOver="tdOver(this)" onMouseOut="tdOut(this)" onClick="tdClick(this)">111</TD>
    <TD onMouseOver="tdOver(this)" onMouseOut="tdOut(this)" onClick="tdClick(this)">222</TD>
    <TD>CCC</TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>
      

  2.   

    你要是已知要的范围:可以当鼠标发生移动时检测当前的对象,是TR时就检测它的TABLEINDEX是不是在111 - 1 --> 222-1内,是话再检测是不是空,否则就什么!
      

  3.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><BODY>
    <TABLE border=1 id="table1">
    <TR>
    <TD>AAA</TD>
    <TD>BBB</TD>
    <TD onclick="clickIt(this)">111</TD>
    <TD onclick="clickIt(this)">222</TD>
    <TD>CCC</TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>
    <script>
    function window.onload(){
    table1.onmouseover = overIt;
    table1.onmouseout = outIt;
    }function overIt(){
    var the_td = get_Element(event.srcElement,"td");
    if(the_td == null)   return;
    var the_tr = the_td.parentElement;
    if(the_tr.rowIndex == 0){
    for(var i = 0 ; i < the_tr.cells.length; i++){
    if(i == 2 || i == 3){
    with(the_tr.cells[i]){
    runtimeStyle.backgroundColor ="#BEC5DE";
    style.cursor = "hand";
    }
    }
    }
    }
    }

    function outIt(){
    var the_td = get_Element(event.srcElement,"td");
    if(the_td == null)   return;
    var the_tr = the_td.parentElement;
    if(the_tr.rowIndex == 0){
    for(var i = 0 ; i < the_tr.cells.length; i++){
    if(i == 2 || i == 3){
    with(the_tr.cells[i]){
    runtimeStyle.backgroundColor ="";
    }
    }
    }
    }
    }function get_Element(the_ele,the_tag){
    the_tag = the_tag.toLowerCase();
    if(the_ele.tagName.toLowerCase()==the_tag)return the_ele;
    while(the_ele=the_ele.offsetParent){
    if(the_ele.tagName.toLowerCase()==the_tag)return the_ele;
    }
    return(null);
    }function clickIt(curTd){
    var tdVal=curTd.innerText;
    if(tdVal=="N/A") return false;
    window.location="other.htm";}
    </script>
    看看是不是你要的?