隨筆 - 147  文章 - 71  trackbacks - 0
          <2009年10月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          常用鏈接

          留言簿(1)

          隨筆分類(146)

          隨筆檔案(147)

          文章分類(28)

          文章檔案(28)

          喜歡的Blog

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          網(wǎng)頁復(fù)制代碼

          <head>
          <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
          <title>復(fù)制 我的內(nèi)容</title> 

          <script type="text/javascript" language="javascript">
              
          function copy(o)
              
          {
                  
          var text=document.getElementById(o).innerText;
                  window.clipboardData.setData(
          "text",text);
                  alert(
          "復(fù)制成功");
              }

          </script>
          </head> 

          <body>
          <href="javascript:copy('span1');">復(fù)制</a>
          <span id="span1">
              我的內(nèi)容
          </span>
          </body> 

           

          網(wǎng)頁防復(fù)制代碼


          插入網(wǎng)頁即可。
          <body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()">
          <noscript><iframe src="/blog/*>";</iframe></noscript>
          1. oncontextmenu="window.event.returnvalue=false" //將徹底屏蔽鼠標(biāo)右鍵
          <table border oncontextmenu=return(false)><td>no</table> //可用于Table
          ------------------------------------------------------------------------------------------------------
          2. <body onselectstart="return false"> //取消選取、防止復(fù)制
          ------------------------------------------------------------------------------------------------------
          3. onpaste="return false" //不準(zhǔn)粘貼
          ------------------------------------------------------------------------------------------------------
          4. oncopy="return false;" oncut="return false;" // 防止復(fù)制
          ------------------------------------------------------------------------------------------------------
          5. //防止被人frame
          <SCRIPT LANGUAGE=javascript><!--
          if (top.location != self.location)top.location=self.location;
          // --></SCRIPT>
          ------------------------------------------------------------------------------------------------------
          6. <noscript><iframe src="/blog/*.html>";</iframe></noscript> //網(wǎng)頁將不能被另存為
          ------------------------------------------------------------------------------------------------------
          7. //改變連接是狀態(tài)欄的顯示內(nèi)容
          〈a href=" </a>
          ------------------------------------------------------------------------------------------------------
          9. //頁面禁止刷新完全
          最好在pop出來的窗口里用,沒工具欄的

          <body onkeydown="KeyDown()" onbeforeunload="location=location"
          oncontextmenu
          ="event.returnValue=false">
          <script language="Javascript"><!--
          function KeyDown(){
          if ((window.event.altKey)&&
          ((window.event.keyCode
          ==37)||
          (window.event.keyCode
          ==39))){ alert("請訪問我的主頁");
          event.returnValue
          =false;
          }

          if ((event.keyCode==8)|| (event.keyCode==116))//屏蔽 F5 刷新鍵
          event.keyCode=0;
          event.returnValue
          =false;
          }

          if ((event.ctrlKey)&&(event.keyCode==78))//屏蔽 Ctrl+n
          event.returnValue=false;
          }

          if ((event.shiftKey)&&(event.keyCode==121))//屏蔽 shift+F10
          event.returnValue=false;
          }

          }

          </script>
          </body>
          主站蜘蛛池模板: 潮安县| 西华县| 桐梓县| 高阳县| 衡阳市| 昌吉市| 荥阳市| 泾阳县| 娱乐| 宜兴市| 潍坊市| 龙州县| 岳阳县| 潢川县| 韶关市| 常熟市| 中阳县| 石河子市| 晋州市| 平安县| 和平县| 建平县| 河东区| 新疆| 民和| 砚山县| 海宁市| 河曲县| 绥宁县| 宣化县| 麻城市| 涟水县| 望都县| 黄石市| 丰镇市| 喀喇| 汤阴县| 于田县| 含山县| 洛扎县| 黄大仙区|