作家
登录

用Asp如何实现防止网页频繁刷新?

作者: 来源:www.28hudong.com 2013-03-30 08:52:36 阅读 我要评论

<% dim RefreshIntervalTime RefreshIntervalTime = 3 '防止刷新的时间秒数,0表示不防止 If Not IsEmpty(Session(“visit“)) 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=“““& RefreshIntervalTime &“““ />“) Response.write (“刷新过快,请稍候“) Session(“visit“) = timer() Response.end end if End If Session(“visit“) = timer() %><!DOCTYPE HTML PUBLIC “-//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-family:黑体;color:#FFFFFF;“> Asp如何防止网页频繁刷新-www.zhangpeng.com.cn </body> </html>

  推荐阅读

  信息发布中的判断过期和有效期的东西

复制代码 代码如下:yxq=cdate(rdsInfo("InfoDate")) //得到有效期 fbsj=FormatTime(rdsInfo("CreateTime"),8) //发布时间 dqsj=DateAdd( "d" ,yxq ,fbsj) //到期时间 sysj=DateDiff ("d",date(),dqsj) //判断剩>>>详细阅读


本文标题:用Asp如何实现防止网页频繁刷新?

地址:http://www.17bianji.com/kaifa2/ASP/32904.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)