setTimeout('window.document.WebForm5.delbutton.src="images/del.gif";',0);

解决方案 »

  1.   

    sorry,应该将代码移到</form>后,因为此时WebForm5还没结束
      

  2.   

    楼上,那句是什么意思。
    我在一个按钮的ONCLIDK中执行
    window.document.WebForm5.delbutton.src="images/del.gif";
    都不可以
      

  3.   

    当然调用自己的ONCLICK时带上THIS作参数,
    在函数中通过参数设置就可以
      

  4.   

    <input type=image> object is not part of form element collection, trywindow.document.WebForm5.delbutton.src="images/del.gif";
    ===>
    window.document.all("delbutton").src="images/del.gif";