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

推荐订阅源

S
Schneier on Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Palo Alto Networks Blog
AWS News Blog
AWS News Blog
Latest news
Latest news
Microsoft Security Blog
Microsoft Security Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Vulnerabilities – Threatpost
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
C
CERT Recently Published Vulnerability Notes
T
Tenable Blog
雷峰网
雷峰网
K
Kaspersky official blog
人人都是产品经理
人人都是产品经理
C
Cybersecurity and Infrastructure Security Agency CISA
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
T
Tor Project blog
A
Arctic Wolf
Project Zero
Project Zero
F
Fortinet All Blogs
T
Threatpost
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
P
Privacy & Cybersecurity Law Blog
D
DataBreaches.Net
量子位
Cisco Talos Blog
Cisco Talos Blog
博客园 - 【当耐特】
V
Visual Studio Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园 - 叶小钗
I
Intezer
G
GRAHAM CLULEY
Google Online Security Blog
Google Online Security Blog
T
The Blog of Author Tim Ferriss
T
Troy Hunt's Blog
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Cyber Attacks, Cyber Crime and Cyber Security
Hacker News: Ask HN
Hacker News: Ask HN
M
MIT News - Artificial intelligence
N
News | PayPal Newsroom
Cyberwarzone
Cyberwarzone
V
V2EX
腾讯CDC
Webroot Blog
Webroot Blog
MongoDB | Blog
MongoDB | 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>