惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
V2EX - 技术
V2EX - 技术
美团技术团队
NISL@THU
NISL@THU
C
CERT Recently Published Vulnerability Notes
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MyScale Blog
MyScale Blog
C
Cybersecurity and Infrastructure Security Agency CISA
W
WeLiveSecurity
博客园 - 聂微东
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Help Net Security
GbyAI
GbyAI
G
GRAHAM CLULEY
The Last Watchdog
The Last Watchdog
U
Unit 42
罗磊的独立博客
B
Blog RSS Feed
K
Kaspersky official blog
宝玉的分享
宝玉的分享
Blog — PlanetScale
Blog — PlanetScale
Know Your Adversary
Know Your Adversary
IT之家
IT之家
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Y
Y Combinator Blog
S
Secure Thoughts
P
Privacy & Cybersecurity Law Blog
S
Schneier on Security
Last Week in AI
Last Week in AI
Hacker News: Ask HN
Hacker News: Ask HN
L
LINUX DO - 热门话题
雷峰网
雷峰网
Martin Fowler
Martin Fowler
Recent Commits to openclaw:main
Recent Commits to openclaw:main
N
Netflix TechBlog - Medium
T
Tor Project blog
The GitHub Blog
The GitHub Blog
The Hacker News
The Hacker News
F
Fortinet All Blogs
Webroot Blog
Webroot Blog
Spread Privacy
Spread Privacy
Cloudbric
Cloudbric
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Schneier on Security
Schneier on Security
人人都是产品经理
人人都是产品经理
P
Privacy International News Feed
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
The Exploit Database - CXSecurity.com
Microsoft Security Blog
Microsoft Security Blog

博客园 - 柏放

检测移动设备横竖屏 [转]一句css代码让你的网站变灰,一起悼念地震中逝去的生命! MYSQL命令行常用操作 MySQL数据库导入导出详解[转发] 国外达人收集的Cheet Sheet PHP学习:字符串操作和正则表达式 PHP学习:数组 PHP学习:文件操作 SQL Server:获得用户最新或前n条订单的几种SQL语句 SQL Server:APPLY表运算符 SQL Server:查询当前服务器有多少连接请求 SQL Server:关于Null的一些事 SQL Server:在Management Studio中使用Web浏览器 SQL Server:获得表的元数据 - SET FMTONLY ON 排序:插入排序及希尔排序 SQL Server:把CSV文件导入到SQL Server表中 SQL Server:使用一个语句块插入多条记录 SQL Server:在事务中回滚TRUNCATE操作 Google Map API学习记录
js倒计时
柏放 · 2011-07-21 · via 博客园 - 柏放

<span id="countdown_hour"></span>:
<span id="countdown_minute"></span>:
<span id="countdown_second"></span>
<script type="text/javascript">
    
var nowTime = new Date().getTime();
    
var endTime = new Date("Jun 18, 2011 10:00:00").getTime();
    
var countDownTimer = null;
    
function get2Num(a) { if (a < 10) { return "0" + a } return "" + a; }
    
function countDown() {
        
var _diff = parseInt((endTime - nowTime) / 1000);
        
var _day = parseInt(_diff / 3600 / 24);
        
var _hour = Math.floor((_diff / 3600% 24);
        
var _minute = Math.floor((_diff / 60% 60);
        
var _second = Math.floor(_diff % 60);
        _hour 
= _day > 0 ? (_day * 24+ _hour : _hour;
        
if (_diff <= 0) {
            window.clearInterval(countDownTimer);
            updateLED(
00,0);
            
return;
        }
        updateLED(_hour,_minute,_second);
        nowTime 
+= 1000;
    }
    
function updateLED(h, m, s) {
        document.getElementById(
"countdown_hour").innerHTML = get2Num(h);
        document.getElementById(
"countdown_minute").innerHTML = get2Num(m);
        document.getElementById(
"countdown_second").innerHTML = get2Num(s);
    }
    countDownTimer 
= window.setInterval(countDown, 1000);
</script>