Forum Moderators: open
How would you activate the script?
If it's by clicking on a button (for example) you could use javascript rather than asp.
Have a look on Google for javascript timer it gives good results.
If it's 3 sec after a page is loaded you could use the meta refresh.
Hops this helps
Leo
dim SecCount, Sec2,Sec1
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
%>
Acitive the sub in your script
<%
Call Delay(3)
Response.redirect "wherever.htm"
%>
.NET offers some good options if it's available to you.
If it must be done in ASP javascript or a COM call to a DLL are pretty much it. VB/C+ have thread safe timers available that truly sleep instead of loop until done.