手机
当前位置:查字典教程网 >编程开发 >ASP教程 >用Asp如何实现防止网页频繁刷新?
用Asp如何实现防止网页频繁刷新?
摘要:

<%

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>

【用Asp如何实现防止网页频繁刷新?】相关文章:

asp实现树型结构

用ASP+CSS实现随机背景

asp如何加速网站打开的速度

asp实现防止站外提交内容的两个方法

用ASP开发网页需要牢记的注意事项

使用类,实现模块化

用ASP实现对MP3曲目信息的操作

asp:生成静态页面函数

如何将长的标题用省略号收尾

使用xmlHttp结合ASP实现网页的异步调用

精品推荐
分类导航