我的问题是这样
<td width="82"><a href="#"><img src="../images/botton_submit.jpg" width="60" height="20" border="0" style="cursor:hand" onclick="submitValue()"/></a></td>这是个按钮 通过图片覆盖的一个事件 
这是个上传按钮
通过点击附件按钮钮后生成出
上传按钮和删除按钮
如图可现在的问题是这生成出来的2个按钮也是通过图片覆盖事件 删除按钮就没问题 可上传点击就没效果
cell3.align="center";
     
     var img = "<input type='hidden' name = 'filecontent' id='filecontent"+rowindex+"'  /><input type='hidden' name='signfile' id='signfile"+rowindex+"'/><img src='../images/botton_upload-.jpg' id='img"+rowindex+"' style='cursor:hand' border=0 style='cursor:hand'  onmouseover='showfiledialog("+rowindex+")'/>&nbsp<img src='../images/botton_delete.jpg' style='cursor:hand' border=0 style='cursor:hand' onclick='deleteRow("+rowindex+")'/>";
     cell3.innerHTML = img;  JavaScriptIE6IE9

解决方案 »

  1.   

    点击上传时,对应js最后要执行submit方法,写了么?
      

  2.   

    补充楼上,你这里的event是onclick而不是onsubmit,所以……
      

  3.   


    现在问题有点复杂了 是这样的  当点击开启兼容性视图后就没问题了 但我在表头加
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    根本没用·· 
    那个兼容性视图的图标也没有变成蓝色  只要能用JS让他变成蓝色就OK了··
    不想要用户手动点和浏览器自动设置 让用代码执行 ···
      

  4.   

    lz,求帮忙 http://bbs.csdn.net/topics/390515753