<menu id="ocigx"><listing id="ocigx"><em id="ocigx"></em></listing></menu><em id="ocigx"><track id="ocigx"><strong id="ocigx"></strong></track></em>
<ins id="ocigx"></ins>

<samp id="ocigx"></samp>

<mark id="ocigx"><ruby id="ocigx"><legend id="ocigx"></legend></ruby></mark><bdo id="ocigx"></bdo>
      <kbd id="ocigx"></kbd>
      首頁 > 設計 > 網頁設計 > 正文

      網頁經典代碼2

      2018-10-16 20:51:31
      字體:
      來源:轉載
      供稿:網友

      網頁經典代碼(二)
       
      8.永遠都會帶著框架
      <script language="javascript"><!--
       if (window == top)top.location.href = "frames.htm";// --></script>
      說明:frames.htm為你的網頁,這也是保護頁面的一種方法
       
      9.防止被人frame
      <SCRIPT LANGUAGE=javascript><!--
       if (top.location != self.location)top.location=self.location;
      // --></SCRIPT>

       
      10.網頁將不能被另存為
      <noscript><iframe src=*.html></iframe></noscript>
      說明:<noscirpt>的用法很廣,其中一條就是可以使JS廣告失效。
       
      11.查源文件
      <input type=button value=查看網頁源代碼

      >
       
      12.COOKIE腳本記錄,有很大的用處哦
      function get_cookie(Name) {
      var search = Name + "="
      var returnvalue = "";
      if (documents.cookie.length > 0) {
      offset = documents.cookie.indexOf(search)
      if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = documents.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
      end = documents.cookie.length;
      returnvalue=unescape(documents.cookie.substring(offset, end))
      }
      }
      return returnvalue;
      }
      function loadpopup(){
      if (get_cookie('popped')==''){
      openpopup()
      documents.cookie="popped=yes" 

      }
      }


      說明:以上是JS代碼,請自己加起始符和結束符

      本文作者:
      上一篇:網頁經典代碼1

      下一篇:網頁經典代碼3

      發表評論 共有條評論
      用戶名: 密碼:
      驗證碼: 匿名發表