如何防止计数器刷新计数?

发布时间:2022-04-17 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了如何防止计数器刷新计数?脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

如何止计数器刷新计数?

<htML>
<head>
<tITle>
千花飞舞之真实的计数器</title>

</head>
<body>
<%dim tms,counter,countlen
dim images(20)
h1="<p>
千花飞舞计数器</font></p>"
If ISEMpty(Session("hasbeenConnected")) then
set rs=server.createobject("adodb.recordset")
application.lock
rs.oPEn "update aspcount set countss=countss+1","dsn=userdbs",3,3
application.unlock
Session("hasbeenConnected")=True
End If
set rs=server.createobject("adodb.recordset")
rs.open "select * From aspcount","dsn=userdbs",3,3
rs.moveFirst
counter=rs(0)
countlen=len(counter)
tms="<h1><font color='#8000ff'>
欢迎,您是第</font>"&&counter&amp;&"<font color='#8000ff'>位来访者!</font></h1>"
response.write(tms)
for i=1 to countlen
images(i)="<img src=" && mid(counter,i,1) && ".gif></img>"
next
response.write images(1)&&images(2)&&images(3)&&images(4)&&images(5)&&images(6)&&images(7)
rs.Close
%>
</body></html>

 

[1]

脚本宝典总结

以上是脚本宝典为你收集整理的如何防止计数器刷新计数?全部内容,希望文章能够帮你解决如何防止计数器刷新计数?所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: