时间函数的问题(3)
<%
dim curtime
curtime=cdate(hour(now())&":"&minute(now()))
if datediff("m","7:25:00",curtime)>=0 and datediff("m","9:45:00",curtime)<0 then
call a
elseif datediff("m","10:04:00",curtime)>=0 and datediff("m","13:23:00",curtime)<0 then
call b
else
call c
end if
%>
这个办法就可以解决当打开网页的时候,时间不同就访问不同的页面
但接着也出现问题,如果我一直不动浏览器,那他就一直访问一个页面,不会自动到其它页面,但用刷新的页面,就占资源比较大!而且页面刷新不方便!
大家有什么好的办法!不妨给个例子看看!
用VB有好的解决办法吗?好像用Timer()可以的吧,但VB水平有限呀!:)
有的可以给个例子看看,小弟在此先谢谢大家!