计算机二级在线答题

WEB每日一练(2017/11/24):用VBScript设计一个页面,显示一个数字时钟,格式如03:16:47PM请补

2017年11月24日来源:计算机二级考试 所有评论

每日一练:计算机二级考试WEB每日一练(2017/11/24)
【填空题】

用VBScript设计一个页面,显示一个数字时钟,格式如03:16:47 PM


  请补全如下代码:


      


    
  timerid=window.settimeout("clock()",1000)


  sub clock()  


  hours=_______  


  minutes=________  


  seconds=________  


  if hours>12  then  


  mark = "PM"


  hours = hours-12


  end if


  if hours=0  then hours=12


  if hours<10 then hours="0"________  


  if minutes<10 then minutes="0"______


  if seconds<10 then seconds="0"_______  


  nowtime= ______________


  ___________.innerhtml=nowtime  


  timerid=_____________


  end sub


在下面提交答题后即可查看答案与试题解析

发布评论 查看全部评论

相关推荐