隨筆 - 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>
          主站蜘蛛池模板: 柘荣县| 瑞安市| 临猗县| 合作市| 通州区| 海阳市| 广南县| 乌兰察布市| 巧家县| 河西区| 嵊泗县| 田林县| 洪泽县| 呼和浩特市| 龙口市| 遵义县| 阳西县| 田林县| 湘乡市| 江山市| 牡丹江市| 南和县| 拜城县| 罗山县| 青冈县| 策勒县| 连州市| 秦皇岛市| 日喀则市| 永兴县| 祁连县| 泗水县| 德昌县| 乌兰浩特市| 雅江县| 军事| 江都市| 上犹县| 樟树市| 汉川市| 陆河县|