利用response.redirect方法实现

来源:百度知道 编辑:UC知道 时间:2024/06/14 08:11:00
利用response.redirect方法实现,当用户在星期一到星期五访问页面时。显示“正在办公”,其余时间显示“今天休息” 要在vbspript的环境下进行编写

总共需要三个页面:
a.html,显示“正在办公”
b.html,显示“今天休息”

c.asp,编程页面。
先获取系统时间,提取星期myday信息,
算法如下:
if myday的值为周六、周日,then
response.redirect("b.html")
else
respopse.redirect("a.html")
end if