原始网页的代码<div id="rstnotice" class="ntc_l bbs" style="display:none">
<a href="javascript:;" title="清除内容" class="d y" onclick="userdataoption(0)">close</a>您有上次未提交成功的数据 <a class="xi2" href="javascript:;" onclick="userdataoption(1)"><strong>恢复数据</strong></a>
</div>
<div class="area">
<textarea name="message" id="e_textarea" class="pt" rows="15" tabindex="2"></textarea>
</div><link rel="stylesheet" type="text/css" href="data/cache/style_3_editor.css?Tbu" />
<script src="static/js/editor.js?Tbu" type="text/javascript"></script>
<script src="static/js/bbcode.js?Tbu" type="text/javascript"></script>
<script type="text/javascript">
var editorid = 'e';
var textobj = $(editorid + '_textarea');
var wysiwyg = (BROWSER.ie || BROWSER.firefox || (BROWSER.opera >= 9)) && parseInt('1') == 1 ? 1 : 0;
var allowswitcheditor = parseInt('1');
var allowhtml = parseInt('1');
var allowsmilies = parseInt('1');
var allowbbcode = parseInt('1');
var allowimgcode = parseInt('1');
var simplodemode = parseInt('0');
var fontoptions = new Array("宋体", "新宋体", "黑体", "微软雅黑", "Arial", "Verdana", "Mingliu", "Helvetica", "Trebuchet MS", "Tahoma", "Impact", "Times New Roman", "仿宋,仿宋_GB2312", "楷体,楷体_GB2312");
var smcols = 8;
var custombbcodes = new Array();
</script>
<div id="e_bbar" class="bbar">
<em id="e_tip"></em>
<span id="e_svdsecond"></span>
<a href="javascript:;" onclick="discuzcode('svd');return false;" id="e_svd">保存数据</a> |
<a href="javascript:;" onclick="discuzcode('rst');return false;" id="e_rst">恢复数据</a>
<a href="javascript:;" onclick="discuzcode('chck');return false;" id="e_chck">字数检查</a> |
<a href="javascript:;" onclick="discuzcode('tpr');return false;" id="e_tpr">清除内容</a>
<span id="e_resize"><a href="javascript:;" onclick="editorsize('+');return false;">加大编辑框</a> | <a href="javascript:;" onclick="editorsize('-');return false;">缩小编辑框</a><img src="static/image/editor/resize.gif" onmousedown="editorresize(event)" /></span>
</div></div>
<div id="post_extra" class="ptm cl">
<div id="post_extra_tb" class="cl" onselectstart="return false">
<label id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><span id="extra_replycredit_chk">回帖奖励</span></label>
<label id="extra_readperm_b" onclick="showExtra('extra_readperm')"><span id="extra_readperm_chk">阅读权限</span></label>
<label id="extra_price_b" onclick="showExtra('extra_price')"><span id="extra_price_chk">售价</span></label>
<label id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><span id="extra_rushreplyset_chk">抢楼</span></label>
</div>
这是一个论坛的某个编辑框
我的程序$oForm = _IEFormGetObjByName($oIE, "postform")
$message = _IEFormElementGetObjByName($oForm, "message")
_IEDocInsertHTML($message, $str,"afterBegin")
str的内容如下面一段话<br />与其它正在进展的工作一道,DARPA的机器人也同样至关重要,比如允许人类操作的爪勾机械装置(grabber mechanism)和触摸屏,以控制实际的切削过程。这项1.8亿美元的首创事业仍有很长的路要走;然而,实验室的研究预计将最早也要持续到2015年。<br /><br /><div align="center"><embed src="http://player.youku.com/player.php/sid/XNTA1NjE3Mzk2/v.swf" type="application/x-shockwave-flash" width="550" height="400" quality="high" /><br /></div><div align="center">DARPA的视频<br /></div><br />
|