点击查看: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
微信搜索"考试吧"了解更多考试资讯、下载备考资料
相关推荐: