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

           

          <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)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 兴安县| 墨玉县| 宕昌县| 台东市| 历史| 酒泉市| 昭通市| 利川市| 蒙城县| 德安县| 格尔木市| 长葛市| 长寿区| 泸西县| 库伦旗| 徐汇区| 新巴尔虎右旗| 蛟河市| 肥乡县| 孟连| 伊宁市| 子长县| 台山市| 长岛县| 旬邑县| 昌乐县| 大名县| 濮阳县| 万年县| 红原县| 搜索| 平阴县| 清镇市| 阜宁县| 内江市| 东乡| 承德市| 杨浦区| 新昌县| 无棣县| 凤庆县|