补充
上面应该是
<a href="#" onlclick="show()">点击</a>漏了 </a>了~~

解决方案 »

  1.   

    document.all('pri').innerHTML= "现<b>在的文本</b>"
      

  2.   

    http://www.firehouse58.com/download/zips/dhtml2.zip
    http://www.firehouse58.com/download/zips/dhtml1.zip
    http://qc2000.533.net/wyzz.htm
    http://crob.myetang.com/html/html.htm
      

  3.   

    给你一个我以前回答过的一个pasteHTML的写法<div id=editer>用鼠标拖选一些文本,点击按钮加粗</div>
    <input type=button value="bold selection" onclick="cc()">
    <script>
    function cc()
    {
      var rng = window.document.selection.createRange();
      if (rng!=null && rng.parentElement() == document.all.editer)
      {
    rng.pasteHTML(rng.text.bold());
      }
    }
    </script>