获得本站免费赞助空间请点这里
返回列表 发帖

喜欢一打开网站就知道今天网站的访问量的小朋友们请进

代码如下
  1. <SCRIPT language=JavaScript>
  2. <!--
  3. var caution = false
  4. function setCookie(name, value, expires, path, domain, secure) {
  5. var curCookie = name + "=" + escape(value) +
  6. ((expires) ? "; expires=" + expires.toGMTString() : "") +
  7. ((path) ? "; path=" + path : "") +
  8. ((domain) ? "; domain=" + domain : "") +
  9. ((secure) ? "; secure" : "")
  10. if (!caution || (name + "=" + escape(value)).length <= 4000)
  11. document.cookie = curCookie
  12. else
  13. if (confirm("Cookie exceeds 4KB and will be cut!"))
  14. document.cookie = curCookie
  15. }
  16. function getCookie(name) {
  17. var prefix = name + "="
  18. var cookieStartIndex = document.cookie.indexOf(prefix)
  19. if (cookieStartIndex == -1)
  20. return null
  21. var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
  22. if (cookieEndIndex == -1)
  23. cookieEndIndex = document.cookie.length
  24. return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
  25. }
  26. function deleteCookie(name, path, domain) {
  27. if (getCookie(name)) {
  28. document.cookie = name + "=" +
  29. ((path) ? "; path=" + path : "") +
  30. ((domain) ? "; domain=" + domain : "") +
  31. "; expires=Thu, 01-Jan-70 00:00:01 GMT"
  32. }
  33. }
  34. function fixDate(date) {
  35. var base = new Date(0)
  36. var skew = base.getTime()
  37. if (skew > 0)
  38. date.setTime(date.getTime() - skew)
  39. }
  40. var now = new Date()
  41. fixDate(now)
  42. now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000)
  43. var visits = getCookie("counter")
  44. if (!visits)
  45. visits = 1
  46. else
  47. visits = parseInt(visits) + 1
  48. setCookie("counter", visits, now)
  49. document.write("www.rvmtv.com欢迎光临本站,您是今天第" + visits + "访问者!")
  50. // -->
  51. </SCRIPT>
复制代码
等哦囿RMBㄋ,买俩個馒頭,吃⑴个扔①个,咬㈠□吐Ⅰ口。

返回列表
【捌玖网络】已经运行: