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