考试吧

计算机等级

考试吧>等级考试>计算机二级考试>Web>模拟试题>正文
2018年9月计算机二级Web强化练习题及答案(5)
考试吧 2018-08-20 14:38:13 评论(0)条

  点击查看:2018年9月计算机二级Web强化练习题及答案汇总

  用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

  答:

  hour(now)

  minute(now)

  second(now)

  &hours

  &minutes

  &seconds

  hours&":"&minutes&":"&seconds&" "&mark

  nowT

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

  下面这段语句,将根据今天是星期几,分别在页面上显示一幅图片,星期一、二显示p1.jpg,其它时间显示p2.jpg。请填写完整下面的程序。

  <%

  Dim theday

  theday=__________

  Select Case theday

  Case ___

  ________ ""

  Case Else

  ____ ""

  End Select

  %>

  答:

  Weekday(NOW())

  2,3

  Response.Write

  Response.Write

扫描/长按二维码帮助考试通关
2018年等考报考资讯
2018等考各科通关技巧
2018各科最新预测试卷
2018等考各科备考资料

微信搜索"考试吧"了解更多考试资讯、下载备考资料

展开全文
评论(0条) 发表
Copyright © 2004-
考试吧(m.566.com)北京美满明天科技有限公司
社会统一信用代码:91110108MA01WU311X
帮助中心