wordpaste.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. html, body {
  8. padding: 0;
  9. margin: 0;
  10. font-size:12px;
  11. margin: 0px;
  12. background-color:#F0F0EE;
  13. }
  14. #wordIframe {
  15. width:390px;
  16. height:250px;
  17. border:1px solid #000000;
  18. }
  19. </style>
  20. <script type="text/javascript">
  21. var KE = parent.KE;
  22. location.href.match(/\?id=([\w-]+)/i);
  23. var id = RegExp.$1;
  24. KE.event.ready(function() {
  25. var iframe = KE.$('wordIframe', document);
  26. var iframeDoc = KE.util.getIframeDoc(iframe);
  27. iframeDoc.open();
  28. iframeDoc.write('<html><head><title>WordPaste</title></head>');
  29. iframeDoc.write('<body style="background-color:#FFFFFF;font-size:12px;margin:2px;" />');
  30. if (!KE.browser.IE) iframeDoc.write('<br />');
  31. iframeDoc.write('</body></html>');
  32. iframeDoc.close();
  33. KE.util.hideLoadingPage(id);
  34. window.setTimeout(function() {
  35. iframeDoc.designMode = "On";
  36. }, 0);
  37. }, window, document);
  38. </script>
  39. </head>
  40. <body>
  41. <div style="margin-bottom:10px;">请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。</div>
  42. <iframe id="wordIframe" name="wordIframe" frameBorder="0"></iframe>
  43. </body>
  44. </html>