欢迎光临
我们一直在努力

页面延迟的两个简单方法

建站超值云服务器,限时71元/月

一、

<% response.buffer = true %>
<%
setup the variables necessary to accomplish the task
dim timerstart, timerend, timernow, timerwait
how many seconds do you want them to wait…
timerwait = 5
setup and start the timers
timernow = timer
timerstart = timernow
timerend = timerstart + timerwait
keep it in a loop for the desired length of time
do while (timernow < timerend)
determine the current and elapsed time
timernow = timer
if (timernow < timerstart) then
timernow = timernow + 86400
end if
loop
okay times up, lets git em outa here
response.redirect "nextpage.html" %>

二、

<%
sub timedelayseconds(delayseconds)
seccount = 0
sec2 = 0
while seccount < delayseconds + 1
sec1 = second(time())
if sec1 <> sec2 then
sec2 = second(time())
seccount = seccount + 1
end if
wend
end sub
%>

to change delay adjust here
<% timedelayseconds(2) %>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 页面延迟的两个简单方法
分享到: 更多 (0)