隨筆 - 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("請?jiān)L問我的主頁");
          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>
          主站蜘蛛池模板: 台州市| 伊川县| 南溪县| 诸城市| 宁波市| 夏河县| 清新县| 琼中| 深州市| 六盘水市| 香河县| 鲁甸县| 金阳县| 英山县| 灌云县| 淳化县| 富平县| 科技| 汝阳县| 咸阳市| 锡林郭勒盟| 东乡| 巴彦县| 黄冈市| 札达县| 滦平县| 讷河市| 葫芦岛市| 竹溪县| 罗江县| 巴青县| 上林县| 新龙县| 阆中市| 增城市| 栖霞市| 化隆| 惠水县| 金门县| 兴隆县| 丹棱县|