日期:2014-05-19  浏览次数:20452 次

新手~~ 路过的高手帮我看下
</script>
<script   language= "javascript ">
  var   theday=new   Date( "January   1,   2008 ")
  var   dayAll
  function   countday(){
  var   today=new   Date()
  var   seconds=   Math.floor((theday.getTime()-today.getTime())/1000)
  var   minutes=Math.floor(seconds/60)
  var   hours=Math.floor(minutes/60)
  var   day=Math.floor(hours/24)
 
  Cday=day
  Chours=hours%24
  Cminutes=minutes%60
  Cseconds=secons%60
  dayAll=   Cday+Chours+Cminutes+Cseconds
  document.form1.Text1.value=dayAll
  var   count=setTimeout( "countday() ",1000)
 

  }
</script>

我刚学这个东西     不知道怎么找错    
另外请教一下  
学习JS要注意什么     我怎么抄别人的     还是错啊

------解决方案--------------------
<script language=JavaScript>

<!-- [Step1]: 这里可以设置倒计时的月日年 -->
var theDay = new Date( "January 1, 2008 ")
var DayALL

function DownCount(){
var today = new Date()
var seconds = Math.floor((theDay.getTime() - today.getTime())/1000)
var minutes = Math.floor(seconds/60)
var hours = Math.floor(minutes/60)
var days = Math.floor(hours/24)
CDay= days
CHour= hours % 24
CMinute= minutes % 60
CSecond= seconds % 60
DayALL = CDay + " 天 , " + CHour + " 小时 , " + CMinute + " 分钟 , " + CSecond + " 秒 "
document.clock.DownCount.value = DayALL
var counter = setTimeout( "DownCount() ", 1000)
}

</script>