我想起来了
用innerhtml
还有其他的好办法吗?

解决方案 »

  1.   

      <tr height=1 >
       <td rowspan=6 align=left height=1 id=showtd name=showtd>
    <img src='img/dujiangyan.jpg' id=show name=show>
       </td>
      </tr>function showpic(pic,id){
    // document.all.show.src='../pics/'+pic;
    // document.all.show.width=170;
    // document.all.show.height=112;
    document.all.showtd.innerHTML="<a href='../news/detail.asp?id="+id+"' target=_blank><img src='../pics/"+pic+"' id=show name=show width=170 height=112 border=0 ></a>";
    }哈哈。我已经搞定了。各位还有其他更简单的方法吗?
      

  2.   

    不行。还有一个问题。好像gif动画显示不了了
    怎么办