點擊查看:2018年9月計算機二級Web強化練習題及答案匯總
用VBScript設計一個頁面,顯示一個數(shù)字時鐘,格式如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)
下面這段語句,將根據(jù)今天是星期幾,分別在頁面上顯示一幅圖片,星期一、二顯示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
微信搜索"考試吧"了解更多考試資訊、下載備考資料
相關推薦:
北京 | 天津 | 上海 | 江蘇 | 山東 |
安徽 | 浙江 | 江西 | 福建 | 深圳 |
廣東 | 河北 | 湖南 | 廣西 | 河南 |
海南 | 湖北 | 四川 | 重慶 | 云南 |
貴州 | 西藏 | 新疆 | 陜西 | 山西 |
寧夏 | 甘肅 | 青海 | 遼寧 | 吉林 |
黑龍江 | 內(nèi)蒙古 |