获取剩下几天几时几分几秒,这代码为什么就不行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<p id="show"></p>
<script type="text/javascript">
window.onload=function(){
var curtime=new Date();
var endtime=new Date("2016,8,10 00:00:00");
var leftday=Math.ceil((endtime-curtime)/(24*60*60*1000));
var lefth=Math.floor((endtime-curtime)/(60*60*1000)-leftday*24));
var leftm=Math.floor((endtime-curtime)/(60*1000)-lefth*60));
var lefts=Math.floor((endtime-curtime)/(1000)-leftm*60));
document.getElementById("show").innerHTML=leftday+"天"+lefth+"时"+leftm+"分"+lefts+"秒";
}
</script>
</body>
</html>
运行结果啥都没有