讓彈出窗口關閉后不再出現

           

          <script language="JavaScript"> 
          <!-- 
          var caution = false 
          function setCookie(name, value, expires, path, domain, secure) 
          var curCookie = name + "=" + escape(value) + 
          ((expires) 
          ? "; expires=" + expires.toGMTString() : ""+ 
          ((path) 
          ? "; path=" + path : ""+ 
          ((domain) 
          ? "; domain=" + domain : ""+ 
          ((secure) 
          ? "; secure" : ""
          if (!caution || (name + "=" + escape(value)).length <= 4000
          document.cookie 
          = curCookie 
          else 
          if (confirm("Cookie exceeds 4KB and will be cut!")) 
          document.cookie 
          = curCookie 
          }
           
          function getCookie(name) 
          var prefix = name + "=" 
          var cookieStartIndex = document.cookie.indexOf(prefix) 
          if (cookieStartIndex == -1
          return null 
          var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length) 
          if (cookieEndIndex == -1
          cookieEndIndex 
          = document.cookie.length 
          return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)) 
          }
           
          function deleteCookie(name, path, domain) 
          if (getCookie(name)) 
          document.cookie 
          = name + "=" + 
          ((path) 
          ? "; path=" + path : ""+ 
          ((domain) 
          ? "; domain=" + domain : ""+ 
          "; expires=Thu, 01-Jan-70 00:00:01 GMT" 
          }
           
          }
           
          function fixDate(date) 
          var base = new Date(0
          var skew = base.getTime() 
          if (skew > 0
          date.setTime(date.getTime() 
          - skew) 
          }
           
          var now = new Date() 
          fixDate(now) 
          //now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000) 
          now.setTime(now.getTime() + 24 * 60 * 60 * 1000
          var visits = getCookie("counter"
          if (!visits) 
          visits 
          = 1 
          else 
          visits 
          = parseInt(visits) + 1 
          setCookie(
          "counter", visits, now) 
          document.write(
          "您這是第 <font color=blue>" + visits + "<font color=black> 次瀏覽"
          if (visits <2)var hWnd=window.open("http://www.aygfsteel.com/Noah""hi""height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no"); 
          }
           

          // --> 
          </script>


          眼鏡蛇

          posted on 2010-01-18 11:08 眼鏡蛇 閱讀(327) 評論(0)  編輯  收藏 所屬分類: JavaScript


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


          網站導航:
           
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          導航

          統計

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 兴和县| 溧水县| 宁明县| 伊宁市| 游戏| 防城港市| 邯郸市| 临安市| 大埔区| 江源县| 金门县| 襄城县| 确山县| 枣庄市| 孝昌县| 汝南县| 鹤山市| 松阳县| 阜南县| 比如县| 孝昌县| 泰兴市| 财经| 垫江县| 屯昌县| 根河市| 资阳市| 敦化市| 咸阳市| 上饶市| 伊吾县| 孟州市| 丁青县| 泊头市| 保山市| 区。| 梅河口市| 黎川县| 靖安县| 清丰县| 佛冈县|