<script type="text/javascript">
function dd(){
var a=document.getElementById("tab")
row = a.insertRow();
cell = row.insertCell();
cell.innerText="11111111111"
row.onmouseover=func}function func(){
  alert("??")
}
</script>
<input type="button" value="press" onclick="dd()">
<table id="tab">

解决方案 »

  1.   

    function dd(){
    var a=document.getElementById("tab")
    row = a.insertRow();
    cell = row.insertCell();
    cell.innerText="11111111111"
    row.onmouseover=function(){func11("3333")}}function func(){
      alert("??")
    }
    function func11(a){
      alert(a)
    }
    </script>
    <input type="button" value="press" onclick="dd()">
    <table id="tab">
    </table>
      

  2.   

    多谢,原来是不应该用onMouseOver而应该用onmouseover,请问为什么必须传递参数的时候需要使用fun(){fun1("arg")};?
      

  3.   

    或者attachEvent("onmouseover",function)也可以