手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp 程序提示中午好,上午好程序
asp 程序提示中午好,上午好程序
摘要:functionjdsj()n=cstr(right(year(date()),2))+"-"y=cstr(month(date()))+"...

function jdsj()
n = cstr(right(year(date()),2)) + "-"
y = cstr(month(date())) + "-"
if len(y) = 2 then y = "0" + y
r = cstr(day(date()))
if len(r) = 1 then r = "0" + r
h = cstr(hour(now())) + "-"
if len(h) = 2 then h = "0" + h
f = cstr(minute(now()))
if len(f) = 1 then f = "0" + f
jdsj = n + y + r + " " + h + f
end function

xxsj = cstr(year(date())) + "年" + cstr(month(date())) + "月" + cstr(day(date())) + "日 " + weekdayname(weekday(now))

Function WHY()
mytime = hour(now())
if mytime>=5 and mytime<9 then why = "早上好!"
if mytime>=9 and mytime<11 then why = "上午好!"
if mytime>=11 and mytime<13 then why = "中午好!"
if mytime>=13 and mytime<18 then why = "下午好!"
if mytime>=18 and mytime<24 then why = "晚上好!"
if mytime>=00 and mytime<5 then why = "挺晚了,注意休息啊!"
End Function

【asp 程序提示中午好,上午好程序】相关文章:

用正则和xmlHttp实现的asp小偷程序

asp提高首页性能的一个技巧

asp中创建多级目录的两段代码

利用xmlhttp和adodb.stream加缓存技术下载远程Web文件

在MsSql、Access两种数据库中插入记录后马上得到自动编号的ID值

实例讲解实现抓取网上房产信息的ASP程序

在ASP应用程序中限制重复提交同一表单

newasp中下载类

asp下多个域名后缀同时查询的域名查询系统

网站生成静态页面攻略2:数据采集

精品推荐
分类导航