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

推荐订阅源

S
Secure Thoughts
P
Proofpoint News Feed
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Project Zero
Project Zero
Cyberwarzone
Cyberwarzone
K
Kaspersky official blog
AWS News Blog
AWS News Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
News | PayPal Newsroom
S
Schneier on Security
O
OpenAI News
S
Security @ Cisco Blogs
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
月光博客
月光博客
GbyAI
GbyAI
T
Tenable Blog
B
Blog
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
T
Troy Hunt's Blog
量子位
S
Security Affairs
Security Archives - TechRepublic
Security Archives - TechRepublic
The Cloudflare Blog
W
WeLiveSecurity
U
Unit 42
Application and Cybersecurity Blog
Application and Cybersecurity Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
The GitHub Blog
The GitHub Blog
Cloudbric
Cloudbric
A
About on SuperTechFans
Hacker News - Newest:
Hacker News - Newest: "LLM"
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Google DeepMind News
Google DeepMind News
博客园_首页
I
Intezer
P
Proofpoint News Feed
N
News and Events Feed by Topic
SecWiki News
SecWiki News
Microsoft Security Blog
Microsoft Security Blog
TaoSecurity Blog
TaoSecurity Blog
博客园 - 三生石上(FineUI控件)
NISL@THU
NISL@THU
Latest news
Latest news
H
Help Net Security
G
Google Developers Blog
博客园 - Franky
T
The Exploit Database - CXSecurity.com
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary

博客园 - 柏放

检测移动设备横竖屏 [转]一句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>