-- 作者:david888
-- 发布时间:9/29/2004 2:15:00 PM
-- 有没有高手能将它改成vb:
搞了3天,不会。看有没有高手能将它改成vb: function word() { HtmlEdit.document.execCommand("Paste",false); var editBody=HtmlEdit.document.body; for(var intLoop=0;intLoop<editBody.all.length;intLoop++){ el=editBody.all[intLoop]; el.removeAttribute("className","",0); el.removeAttribute("style","",0); el.removeAttribute("font","",0); } var html=HtmlEdit.document.body.innerHTML; html=html.replace(/<o:p> <\/o:p>/g,""); html=html.replace(/o:/g,""); html=html.replace(/<font>/g, ""); html=html.replace(/<FONT>/g, ""); html=html.replace(/<span>/g, ""); html=html.replace(/<SPAN>/g, ""); html=html.replace(/<SPAN lang=EN-US>/g, ""); html=html.replace(/<P>/g, ""); html=html.replace(/<\/P>/g, ""); html=html.replace(/<\/SPAN>/g, ""); HtmlEdit.document.body.innerHTML = html; format('selectall'); format('RemoveFormat'); }
|