佳木斯湛栽影视文化发展公司

主頁 > 知識庫 > asp 延時(shí) 頁面延遲的三種方法

asp 延時(shí) 頁面延遲的三種方法

熱門標(biāo)簽:Mysql連接數(shù)設(shè)置 科大訊飛語音識別系統(tǒng) 銀行業(yè)務(wù) Linux服務(wù)器 電子圍欄 阿里云 團(tuán)購網(wǎng)站 服務(wù)器配置
ASP頁面延遲的兩個(gè)簡單方法
asp延時(shí)第一種
復(fù)制代碼 代碼如下:

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

asp延時(shí)二、

復(fù)制代碼 代碼如下:

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

asp延時(shí)第三種方法
復(fù)制代碼 代碼如下:

'asp延時(shí)方法
Sub DelayTime(secondNumber)
dim startTime
startTime=NOW()
do while datediff("s",startTime,NOW())secondNumber
loop
End Sub

call DelayTime(5)

測試用可以,但是這樣的代碼很占CPU,不推薦訪問量大的站使用……

標(biāo)簽:大理 江蘇 廣元 蚌埠 衡水 衢州 萍鄉(xiāng) 棗莊

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《asp 延時(shí) 頁面延遲的三種方法》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    武邑县| 翁牛特旗| 上林县| 新河县| 施秉县| 扬州市| 含山县| 秦皇岛市| 六枝特区| 琼结县| 兴化市| 江达县| 含山县| 金塔县| 吉水县| 油尖旺区| 土默特右旗| 祁东县| 灵山县| 阳高县| 衡水市| 苏尼特左旗| 丰台区| 东丰县| 吴江市| 老河口市| 蒙自县| 洞口县| 穆棱市| 平阴县| 枣强县| 同德县| 平度市| 阿尔山市| 萨嘎县| 庐江县| 砚山县| 毕节市| 合作市| 西乌| 西盟|