什么意思。????
我用 document.onclick=hander;可能实现所有的CLICK事件的监听。。
但是不知道怎么实现对这个onChange事件。。
能不能说详细点

解决方案 »

  1.   

    写htc用样式表====CSDN====
    人生起起伏伏凑字凑
      

  2.   

    <html>
    <head>
    <script>
    function CheckObj(){ for(i=0;i<mybody.children.length;i++){
    mybody.children(i).attachEvent("onmouseover",function(){moveWithOptions("#FF0000","#0000FF")});
    mybody.children(i).attachEvent("onmouseout",function(){moveWithOptions("","")});
    }
    function moveWithOptions(backgroundColor,textColor) {
    with(event.srcElement) {
    style.background = backgroundColor;
    style.color = textColor;
    }
    }
    }
    </script>
    <body id="mybody" onload="CheckObj()">
    <INPUT TYPE="text" NAME="testInputText" value="testInputText">
    <INPUT TYPE="button" NAME="testInputbutton" value="testInputbutton">
    <INPUT TYPE="checkbox" NAME="testInputcheckbox" value="testInputcheckbox">
    <a href="#" NAME="tagA" >tagA</a>
    <span>tagSpan</span>
    <TABLE>
    <TR>
    <TD>td_1</TD>
    <TD>td_2</TD>
    </TR>
    </TABLE>
    </body></html>