一、
<% 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) %>
