1112009-02-27 13:21
| | </tr>
<tr>
<td height="56" align="right"><div id="timetxt" align="center"></div></td>
<script language="javascript">
var date = new Date(2009, 2, 27, 13, 1, 40);
function createtime()
{
var olympicDate=new Date(2008,6,13,7,45,0);
date.setTime(date.getTime()+250);
var diffTime = date - olympicDate;
var para = 1000 * 60 * 60 * 24;
var diffday = diffTime / para;
var diffHour = (diffTime % para) / 3600000;
var diffMinute = (diffTime % 3600000 ) / 60000;
var diffSecond = (diffTime % 60000) / 1000;
document.getElementById("timetxt").innerHTML = "小栋栋出生到现在已有<br />" +
Math.floor(diffday) + "<span>天</span>" + Math.floor(diffHour) + "<span>小时</span>" +
Math.floor(diffMinute) + "<span>分</span>" + Math.floor(diffSecond) + "<span>秒
</span>";
}
createtime();
setInterval("createtime()",250);
</script>
</tr>
标签:11 阅读: (0) | 留言: (0)