只要onclick的时候把背景色变一下就可以了

解决方案 »

  1.   

    <form name="form1">
    <input name="test" onclick="javascript:oo()">
    </form>
    <script language="javascript">
     function oo(){
      form1.test.select();
    }
    </script>
      

  2.   

    <table bgcolor="menu" width="100%" border="1" height="10%" cellspacing="4" bordercolordark="#333333" bordercolorlight="#eeeeee">
    <tr>
    <td onclick="switchImg(0)" bordercolordark="menu" bordercolorlight="menu" onMouseOut="this.borderColorDark='menu';this.borderColorLight='menu'" onMouseOver="this.borderColorDark='#eeeeee';this.borderColorLight='#333333'" onmousedown="this.borderColorDark='#333333';this,borderColorLight='#eeeeee'" style="font-size:9pt;font-weight:bold;height:30px;margin:0px">
    ||网络拓扑<!--div id=ss style="display:none;background-color:menu;position:absolute;top:expression(parentElement.style.top+30);left:expression(0);width:expression(parentElement.width*0.9);height:150;margin:0px">adasdasdas</div--></td>
    <td onclick="switchImg(1)" bordercolordark="menu" bordercolorlight="menu" onMouseOut="this.borderColorDark='menu';this.borderColorLight='menu'" onMouseOver="this.borderColorDark='#eeeeee';this.borderColorLight='#333333'" onmousedown="this.borderColorDark='#333333';this,borderColorLight='#eeeeee'" style="font-size:9pt;font-weight:bold;height:30px;margin:0px">
    ||功能模块</td>
    <td onclick="switchImg(2)" bordercolordark="menu" bordercolorlight="menu" onMouseOut="this.borderColorDark='menu';this.borderColorLight='menu'" onMouseOver="this.borderColorDark='#eeeeee';this.borderColorLight='#333333'" onmousedown="this.borderColorDark='#333333';this,borderColorLight='#eeeeee'" style="font-size:9pt;font-weight:bold;height:30px;margin:0px">
    ||操作界面 </td>
    <td onclick="switchImg(3)" bordercolordark="menu" bordercolorlight="menu" onMouseOut="this.borderColorDark='menu';this.borderColorLight='menu'" onMouseOver="this.borderColorDark='#eeeeee';this.borderColorLight='#333333'" onmousedown="this.borderColorDark='#333333';this,borderColorLight='#eeeeee'" style="font-size:9pt;font-weight:bold;height:30px;margin:0px">
    ||特色系统</td>
    </tr>
    </table>
      

  3.   


    <table bgcolor=menu><tr><td width=200><input onfocus="parentElement.bgColor='#eeeeeeee'" onblur="parentElement.bgColor='menu'"></td></tr>
    <td width=200><input onfocus="parentElement.bgColor='#eeeeeeee'" id=text1 name=text1 onblur="parentElement.bgColor='menu'"></td></tr>
    </table>
      

  4.   

    http://xml.sz.luohuedu.net/xml/ShowList.asp?id=1
      

  5.   

    <html>
       <script language="javascript">
    function High_light(id,val){
      eval(id).bgColor="#e1f3ff";}
       </script>
    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>新建网页 1</title>
    </head><body><form method="POST" action="--WEBBOT-SELF--">
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
        <tr>
          <td id=td1 width="100%"><input type="text" name="T1" size="20" onclick="High_light('td1',this.value)"></td>
        </tr>
        <tr>
          <td id=td2 width="100%"><input type="text" name="T2" size="20" onclick="High_light('td2',this.value)"></td>
        </tr>
      </table>
      <p> </p>
    </form></body></html>
      

  6.   

    to 小冰棍儿,那个网页点在表格里也能变啊to kenshin,你的变了后不能恢复啊
    to 孟子E章,不是onover显示啊
      

  7.   

    <table bgcolor=menu><tr><td width=200 onclick="children(0).focus()"><input onfocus="parentElement.bgColor='#eeeeeeee'" onblur="parentElement.bgColor='menu'"></td></tr>
    <td width=200  onclick="children(0).focus()"><input onfocus="parentElement.bgColor='#eeeeeeee'" id=text1 name=text1 onblur="parentElement.bgColor='menu'"></td></tr>
    </table>
    那这样你满不满意腻?