页面延迟的两个简单方法

2016-01-29 18:16 2 1 收藏

页面延迟的两个简单方法,页面延迟的两个简单方法

【 tulaoshi.com - ASP 】

  一、

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

 

来源:https://www.tulaoshi.com/n/20160129/1505117.html

延伸阅读
FunctionCompFile(F1asstring,F2asstring)asboolean Dimissameasboolean OpenF1ForBinaryAs#1 OpenF2ForBinaryAs#2 issame=True IfLOF(1)LOF(2)Then issame=False Else whole&=LOF(1)10000'numberofwhole10,000bytechunks part&=LOF(1)Mod10000'remainingbytesatendoffile buffer...
两个世界2 运行序列号 进入游戏后提示输入序列号,可用下面一组: JR2W-FY5U-R34N-YZU4 更多相关内容请关注:两个世界2专区 两个世界2 2小时游玩评价 玩了2个小时~谈谈自己的...
标签: 故事
故事两个朋友 在南非的莫诺莫塔帕王国,有两个真心的朋友,他们有福同享,有难同当。据说这里的人交朋友,比其他地方的人真心实意得多。一天夜里,人们早已进入了梦乡,一个朋友突然从睡梦中惊醒,一骨碌从床上爬起来就径直朝另一个朋友家跑来,把他家仆人叫醒,因为他感觉梦神已迈进了朋友家的大门。被吵醒的朋友非常惊慌,他穿起衣服,系好...
标签: 营养价值
我们中国是个地大物博的国家,同时也是一个人口大国。通常会因为地域和民族的差异,而导致风俗习惯的不同。风俗习惯的不同经常表现在穿着和饮食方面,比如我们汉族人穿着的特点和其他族都是不一样的;同时我们吃的东西也和其他族的人吃的食物有着很大的差异。 我们的饮食差异最好的表现就是在于春节了,有的地方会吃饺子,而有的地方...
标签: ASP
  <% '--------------------------------------------------------------------------- '                   程序作用:打印request.form输入的所有值 '--------------------------------------------------------------------------- Res...

经验教程

866

收藏

84
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部