<script type ="text/javascript" >
<!-- //
var AssignTime = "2010-11-06 20:36:47";
var YMD = AssignTime.split(" ")[0];
var asY = YMD.split("-")[0];
var asMonth = (YMD.split("-")[1])-1;
var asD = YMD.split("-")[2];
var HMS = AssignTime.split(" ")[1];
var asH = HMS.split(":")[0];
var asM = HMS.split(":")[1];
var asS = HMS.split(":")[2];
function GetRTime(){
var EndTime= new Date(asY,asMonth,asD,asH,asM,asS); //截止时间:2006年6月10日0时0分
var NowTime = new Date();
var nMS =EndTime.getTime() - NowTime.getTime();
var nD =Math.floor(nMS/(1000 * 60 * 60 * 24));
var nH=Math.floor(nMS/(1000*60*60)) % 24;
var nM=Math.floor(nMS/(1000*60)) % 60;
var nS=Math.floor(nMS/1000) % 60;
if(nD>= 0){
document.getElementById("RemainD").innerHTML=nD;
document.getElementById("RemainH").innerHTML=nH;
document.getElementById("RemainM").innerHTML=nM;
document.getElementById("RemainS").innerHTML=nS;
}
else {
document.getElementById("CountMsg").innerHTML="世界杯已经圆满结束!";
}
setTimeout("GetRTime()",1000);
}
window.οnlοad=GetRTime;
// -->
</script>
<div id="CountMsg"></div>
<span id="RemainD"></span>天<span id="RemainH"></span>小时<span id="RemainM"></span>分钟<span id="RemainS"></span>秒钟