wordpaste.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. <title>WordPaste</title>
  6. <style type="text/css" rel="stylesheet">
  7. body {
  8. font-size:12px;
  9. margin: 0px;
  10. background-color:#F0F0EE;
  11. }
  12. #wordIframe {
  13. width:320px;
  14. height:250px;
  15. border:1px solid #000000;
  16. }
  17. </style>
  18. <script type="text/javascript">
  19. function setIframe() {
  20. var iframe = parent.KE.$('wordIframe', document);
  21. var iframeDoc = parent.KE.util.getIframeDoc(iframe);
  22. iframeDoc.designMode = "On";
  23. iframeDoc.open();
  24. iframeDoc.write('<html><head><title>WordPaste</title></head>');
  25. iframeDoc.write('<body style="background-color:#FFFFFF;font-size:12px;margin:2px;" />');
  26. if (parent.KE.browser != 'IE') iframeDoc.write('<br />');
  27. iframeDoc.write('</body></html>');
  28. iframeDoc.close();
  29. }
  30. </script>
  31. </head>
  32. <body onload="javascript:setIframe();">
  33. <div style="margin-bottom:10px;">请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。</div>
  34. <iframe id="wordIframe" name="wordIframe" frameBorder="0"></iframe>
  35. </body>
  36. </html>