本帖最后由 network2800 于 2011-10-13 21:39:34 编辑

解决方案 »

  1.   

    补充下,这断JS代码是放在
    http://xx.com/index.aspx里的
      

  2.   

    可能UploadHandler.ashx的路径不对src='http://xx.com/UploadHandler.ashx?action......
      

  3.   


    搞错了,我在js里把http://xx.com/加上,就可以,这是怎么 回事呢
      

  4.   

    路径问题UploadHandler.ashx
    ../UploadHandler.ashx
    /UploadHandler.ashx这几个路径是不一样的
      

  5.   

     document.write("<a href='#' target='_blank'><img border=0 src='UploadHandler.ashx?action=getimg&fp=/guanggao/DRv5LN53h2ofen_BZ28842V44.gif' width='468' height='60' alt='' /></a>"); 这句代码是放在
    http://xx.com/index.aspx里的
    按理是没错的,我在页面的那个X上右键看图片路径也是正确
    奇怪
    只有js里把http://xx.com/index.aspx加上才能显示
      

  6.   

    打错,只有js里把http://xx.com/加上才能显示
    document.write("<a href='#' target='_blank'><img border=0 src='http://xx.com/UploadHandler.ashx?action=getimg&fp=/guanggao/DRv5LN53h2ofen_BZ28842V44.gif' width='468' height='60' alt='' /></a>");