pasteHtml改变内容的问题 editor.document.selection.createRange().pasteHTML(" <embed src='http://img.swf' type='application/x-shockwave-flash' </embed>"); 这段代码似乎本身就不合规范哦 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 -- try function insertHTML(html){ editor.focus(); var cr = editor.document.selection.createRange(); if(editor.document.selection.type.toLowerCase() != "none") editor.document.selection.clear(); editor.document.selection.createRange().pasteHTML(" <embed src='http://img.swf' type='application/x-shockwave-flash'></embed>"); } TO:蜗牛也是牛谢谢回复。OK了,昨天晚上搞晕了。呵呵。因为中间曾经把那个>加上也没看见引号,以为还不行呢,后来发现没有引号也能正常显示FLASH。谢谢蜗牛! Javascript获取class的值问题 如何动态合并单元格 JSP做柱状或者线状图表,而且不用第三方工具,怎么实现?求指点 AJAX的XMLHttpRequest对象使用POST方法传递数据的编码方式如何更改为GB2312?? 关于控件的绝对位置 js效果图片实现 submit与href 脚本不能运行,怎么解决 我用javascript自动生成iframe,但是在执行的时候,超级链接会出现进度条 关于js解析xml的问题。在线等待 这个 正则如何写? 关于firefox浏览器的问题,
editor.focus();
var cr = editor.document.selection.createRange();
if(editor.document.selection.type.toLowerCase() != "none")
editor.document.selection.clear();
editor.document.selection.createRange().pasteHTML(" <embed src='http://img.swf' type='application/x-shockwave-flash'></embed>");
}