JS 紀事

          1.
          function doCopy() {
          ???textRange = test.createTextRange();
          ???textRange.execCommand("Copy");
          }
          function doPaste() {
          ???textRange = taCode.createTextRange();
          ???textRange.execCommand("Paste");
          }?

          2.
          ?<script language="javascript">
          function readTxt()
          {
          ??? alert(window.clipboardData.getData("text"));
          }
          function setTxt()
          {
          ??? var t=document.getElementById("txt");
          ??? t.select();
          ??? window.clipboardData.setData('text',t.createTextRange().text);
          }
          </script>
          <input name="txt" value="輸入測試">
          <input type="button" value="復制" onclick="setTxt()">
          <input type="button" value="讀取" onclick="readTxt()">
          window.clipboardData.clearData();?

          即可破解右鍵限制:javascript:void(document.body.oncontextmenu='',document.oncontextmenu='');

          posted on 2010-01-04 14:04 飛熊 閱讀(190) 評論(0)  編輯  收藏 所屬分類: Javascript


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導航:
           
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          導航

          統(tǒng)計

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          收藏夾

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 乌海市| 奈曼旗| 镇巴县| 武清区| 弋阳县| 比如县| 故城县| 岳阳市| 五指山市| 孙吴县| 邢台市| 清徐县| 桃园市| 和硕县| 江川县| 武鸣县| 兖州市| 黄山市| 玛沁县| 喀什市| 嘉黎县| 孝感市| 阿尔山市| 丰县| 吴堡县| 绥棱县| 宜城市| 葵青区| 滁州市| 徐闻县| 若羌县| 凤台县| 汝城县| 盘山县| 石首市| 邓州市| 湄潭县| 清新县| 佛冈县| 夏邑县| 沾化县|