1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3 
  4 <html xmlns="http://www.w3.org/1999/xhtml">
  5 <head>
  6     <title>火输文本编辑器</title>
  7     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  8     <link rel="stylesheet" href="chrome://fireinput/skin/editor.css" type="text/css"/>
  9     <script type="text/javascript" language="JavaScript1.2">
 10        function copyToClipboard()
 11        {
 12          var source = document.getElementById("editorContext");
 13          if(source)
 14          {
 15             if(source.value.length <= 0)
 16                return; 
 17             try {
 18                var clipboard = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
 19                                     .getService(Components.interfaces.nsIClipboardHelper);
 20                clipboard.copyString(source.value);
 21             } 
 22             catch(e) {}
 23          }
 24        }
 25 
 26        function showHelp(e)
 27        {
 28          var id = document.getElementById("helpContext"); 
 29          var mouseY = e.clientY + document.body.scrollTop + 
 30                        document.documentElement.scrollTop;
 31          var mouseX = e.clientX + document.body.scrollLeft +
 32                        document.documentElement.scrollLeft;
 33          if(id.style.display == "block")
 34          {
 35             id.style.display = "none"; 
 36             return; 
 37          }
 38 
 39          id.style.display = "block"; 
 40          id.style.left = (mouseX - 220) + "px"; 
 41          id.style.top = (mouseY + 20) + "px";
 42        }
 43     </script>
 44 </head>
 45 <body onLoad="document.getElementById('editorContext').focus();">
 46     <div id="fireinputLocalEditor" class="localEditor">
 47         <div class="editorHead">火输文本编辑器</div>
 48         <div class="helpHead">
 49             <div class="helpMenu" onclick="showHelp(event)">帮助</div>
 50         </div>
 51         <div>
 52           <textarea id="editorContext" class="editorContext"></textarea>
 53         </div>
 54         <div class="editorAction">
 55           <input type=button name=copy value="复制到剪贴板" onclick="copyToClipboard()">
 56         </div>
 57     </div>
 58     <div class="helpContext" id="helpContext">
 59       <div class="helpContextItem">
 60             <span class="helpContextKey">PageDown或.:</span>
 61             <span class="helpContextKeyValue">向下翻页</span>
 62       </div>
 63       <div class="helpContextItem">
 64             <span class="helpContextKey">PageUp或,:</span>
 65             <span class="helpContextKeyValue">向上翻页</span>
 66       </div>
 67 
 68       
 69       <div class="helpContextItem">
 70             <span class="helpContextKey">Home:</span>
 71             <span class="helpContextKeyValue">翻到首页</span>
 72       </div>
 73 
 74       <div class="helpContextItem">
 75             <span class="helpContextKey">End:</span>
 76             <span class="helpContextKeyValue">翻到末页</span>
 77       </div>
 78 
 79       <div class="helpContextItem">
 80             <span class="helpContextKey">Ctrl+空格:</span>
 81             <span class="helpContextKeyValue">切换中英文</span>
 82       </div>
 83       <div class="helpContextItem">
 84             <span class="helpContextKey">shift:</span>
 85             <span class="helpContextKeyValue">暂时切换到英文</span>
 86       </div>
 87       <div class="helpContextItem">
 88             <span class="helpContextKey">CTRL+Alt+M:</span>
 89             <span class="helpContextKeyValue">切换全/半角</span>
 90       </div>
 91       <div class="helpContextItem">
 92             <span class="helpContextKey">CTRL+Alt+P:</span>
 93             <span class="helpContextKeyValue">切换标点符号</span>
 94       </div>
 95       
 96       <div class="helpContextItem">
 97             <span class="helpContextKey">数字键:</span>
 98             <span class="helpContextKeyValue">选择字词</span>
 99       </div>
100       <div class="helpContextItem">
101             <span class="helpContextKey">Ctrl+数字键:</span>
102             <span class="helpContextKeyValue">组合新词组</span>
103       </div>
104       <div class="helpContextItem">
105            <span class="helpContextKey">F2:</span>
106            <span class="helpContextKeyValue">重复前一次输入</span>
107       </div>
108       <div class="helpContextItem">
109            <span class="helpContextKey">Esc:</span>
110            <span class="helpContextKeyValue">清除输入码</span>
111       </div>
112    </div>
113 </body>
114 </html>


syntax highlighted by Code2HTML, v. 0.9.1