我用在DIV中插入的办法报错:
window.opener.document.getElementById('texts').insertAdjacentHTML('BeforeEnd',ss);
iframe中究竟这句应该如何改写呢?
请高手指点迷津,谢谢。

解决方案 »

  1.   

    这样也错:window.opener.document.getElementById('texts').format("InsertImage", ss);
      

  2.   

    这样也错:window.opener.format("texts", ss);
      

  3.   

    window.frames["main"].contentWindow.document.insertAdjacentHTML()
      

  4.   

    window.parent.document.getElementById('texts').innerHTML+=ss; 
      

  5.   

    insertAdjacentHTML()在ff没用可以用appendChild()
      

  6.   

    format("texts", ss)这样是可以图文混排的,目的是要达到图文混排的效果。
      

  7.   

    在163htmledit中插入图片的例子是这样的:
    function createImg() {
    var sPhoto=prompt("请输入图片位置:", "http://");
    if ((sPhoto!=null) && (sPhoto!="http://")){
    format("InsertImage", sPhoto);
    }
    }我现在需要改成在子页中操作父页这样插入一些图片,应该如何改写呢?