document.all("imageid").src="otherimage.gif";

解决方案 »

  1.   

    什么意思。换成另一张图片?如果是这样,方法如下:<img src="img1.jpg" style="cursor:hand" onclick="this.src='img2.jpg'">
      

  2.   

    是这个吗:
    <img id="oImg" src="1.jpg">
    <input type="button" onclick="document.all.oImg.src = '2.jpg'" value="change src">
      

  3.   

    大家猜谜语吧:
    我觉得是如果没有该指定图像,是否可以用默认的图片代替<img src="img1.jpg" style="cursor:hand" onerror="this.src='error.jpg'">
      

  4.   

    呵呵,好qiushuiwuhen(秋水无恨) 有创意.