⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tzoffset.php

📁 网页打卡钟系统,源码提供给大家学习一下啦!希望给大家带来帮助
💻 PHP
字号:
<script language="JavaScript">  var time = new Date()  var cookieexpire = new Date(time.getTime() + 90 * 24 * 60 * 60 * 1000); //cookie expires in 90 days  var timeclock = document.cookie;  var timezone = (-(time.getTimezoneOffset()))  function getthecookie(name) {     var index = timeclock.indexOf(name + "=");    if (index == -1) return null;    index = timeclock.indexOf("=", index) + 1;    var endstr = timeclock.indexOf(";", index);    if (endstr == -1) endstr = timeclock.length;    return unescape(timeclock.substring(index, endstr));  }  function setthecookie(timeclock, value) {     if (value != null && value != "")      document.cookie=timeclock + "=" + escape(value) + "; expires=" + cookieexpire.toGMTString();    timeclock = document.cookie;   }  var tzoffset = getthecookie("tzoffset") || timezone;  if (tzoffset == null || tzoffset == "")    tzoffset="0";  setthecookie("tzoffset", tzoffset);</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -