脚本宝典收集整理的这篇文章主要介绍了用Asp如何实现防止网页频繁刷新?,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
<%
&nbs
p; dim RefreshIntervalTime
RefreshIntervalTime = 3 '
防止刷新的时间秒数,0表示不防止
If Not I
SEMpty(Session(“vis
IT“)) and isnumeric(Session(“visit“)) and int(RefreshIntervalTime) > 0 Then
if (timer()
-int(Session(“visit“)))*1000 < RefreshIntervalTime * 1000 then
Response.write (“<
;meta http-equiv=““refresh““ content=“““&
amp; RefreshIntervalTime &“““ />“)
Response.write (“刷新过快,请稍候“)
Session(“visit“) = timer()
Response.end
end if
End If
Session(“visit“) = timer()
%><!DOCTY
PE HT
ML P
ubLIC “-//W3C//DTD HTML 4.01 Transitional//EN“>
<html>
<head>
<title>Asp如何防止网页频繁刷新-wwww.zhangpeng
.COM.cn</title>
<meta http-equiv=“Content
-type“ content=“text/html; charset=gb2312“>
<link rel=“stylesheet“ type=“text/css“
href=“style.css“>
<style type=“text/css“>
</style>
</head>
<body style=“background-color:
#666666;font-
Size:36pt;font-f
amily:黑体;color:#FFFFFF;“>
Asp如何防止网页频繁刷新-www.zhangpeng.com.cn
</body>
</html>
脚本宝典总结
以上是脚本宝典为你收集整理的用Asp如何实现防止网页频繁刷新?全部内容,希望文章能够帮你解决用Asp如何实现防止网页频繁刷新?所遇到的问题。
如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。