台湾娱乐圈:求一ASP钟表代码

来源:百度文库 编辑:高考问答 时间:2024/05/05 09:01:52
能用中文解释一下吗????

************************************************
简易电子表,将以下代码存为***.htm即可看其效果。
************************************************
<html>
<head>
<title>电子表</title>
</head>
<body>
<span id="yt"></span>
</body>
</html>
<script language="vbscript">
dim stt,edt
sub disp_clock()
dim hr,sx,hrs,curtime
hr=hour(time())
if hr<12 then
hrs=cstr(hr)
sx=" am"
else
hrs=cstr(hr-12)
sx=" pm"
end if
curtime=hrs+right(cstr(time()),6)
yt.innerHTML=curtime+sx
call settimeout("disp_clock()",1000)
end sub
disp_clock
</script>
************************************************

你下载一个网页特效梦工厂,那里面有很多种钟表的代码。