點擊查看: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。請?zhí)顚懲暾旅娴某绦颉?/P>
<%
Dim theday
theday=__________
Select Case theday
Case ___
________ ""
Case Else
____ ""
End Select
%>
答:
Weekday(NOW())
2,3
Response.Write
Response.Write
微信搜索"考試吧"了解更多考試資訊、下載備考資料
相關推薦: