<%
dimRefreshIntervalTime
RefreshIntervalTime=3'防止刷新的時間秒數,0表示不防止
IfNotIsEmpty(Session(“visit“))andisnumeric(Session(“visit“))andint(RefreshIntervalTime)>0Then
if(timer()-int(Session(“visit“)))*1000<RefreshIntervalTime*1000then
Response.write(“<metahttp-equiv=““refresh““content=“““&RefreshIntervalTime&“““/>“)
Response.write(“刷新過快,請稍候“)
Session(“visit“)=timer()
Response.end
endif
EndIf
Session(“visit“)=timer()
%><!DOCTYPEHTMLPUBLIC“-//W3C//DTDHTML4.01Transitional//EN“>
<html>
<head>
<title>Asp如何防止網頁頻繁刷新-wwww.zhangpeng.com.cn</title>
<metahttp-equiv=“Content-Type“content=“text/html;charset=gb2312“>
<linkrel=“stylesheet“type=“text/css“href=“style.css“>
<styletype=“text/css“>
</style>
</head>
<bodystyle=“background-color:#666666;font-size:36pt;font-family:黑體;color:#FFFFFF;“>
Asp如何防止網頁頻繁刷新-www.zhangpeng.com.cn
</body>
</html>