' sleep 함수

Function Sleep(seconds)

set oShell = CreateObject("Wscript.Shell")

cmd = "%COMSPEC% /c timeout " & seconds & " /nobreak"

oShell.Run cmd,0,1

End Function


        ' 사용예

For i = 1 to 10

response.write("End "&i&"<br>")

Sleep(5)

Next


출처: http://stackoverflow.com/questions/2237393/how-to-delay-a-response-in-classic-asp

'Classic ASP' 카테고리의 다른 글

사이트 긁어오기  (0) 2015.08.20
ASP에서 JSON을 쓰려면  (0) 2015.03.06
ASP의 컬렉션(Dictionary, Map, 연관배열)  (0) 2014.03.12
ASP의 배열(Array)  (0) 2014.03.12
윈도우7에서 ASP(.net 말고) 설치  (0) 2013.03.11

+ Recent posts