ASP页面延迟的三种方法
来源:爱站网时间:2020-10-02编辑:网友分享
网站开发的时候通常会出现页面延迟的情况,而JS的加载有能帮助页面提高速度,那么下面就由爱站技术频道小编来为你揭秘ASP页面延迟的三种方法,希望能帮到你。
网站开发的时候通常会出现页面延迟的情况,而JS的加载有能帮助页面提高速度,那么下面就由爱站技术频道小编来为你揭秘ASP页面延迟的三种方法,希望能帮到你。
asp延时第一种
复制代码 代码如下:
' 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 ' Determine the current and elapsed time
TimerNow = Timer
If (TimerNow TimerNow = TimerNow + 86400
End If
Loop
' Okay times up, lets git em outa here
Response.Redirect "nextpage.html" %>
asp延时二、
复制代码 代码如下:
Sub TimeDelaySeconds(DelaySeconds)
SecCount = 0
Sec2 = 0
While SecCount Sec1 = Second(Time())
If Sec1 Sec2 Then
Sec2 = Second(Time())
SecCount = SecCount + 1
End If
Wend
End Sub
%>
' To change delay adjust here
asp延时第三种方法
以上就是爱站技术频道小编为大家搜集的ASP页面延迟的三种方法,我们只要按照上述的介绍一步一个脚印,一定能让你有所收获。
上一篇:ASP数据库连接函数代码
下一篇:简述ASP数据岛操作类