首页 > 互联资讯 > 技术交流  > 

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

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



</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: ' '; mso-hansi-font-family: ' '; mso-bidi-font-size: 9.0pt">千花飞舞之真实的计数器</SPAN><SPAN lang=EN-US style="FONT-FAMILY: ' '; mso-bidi-font-size: 9.0pt">



<%dim tms,counter,countlen
dim images(20)
h1="

千花飞舞计数器

"
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="

欢迎,您是第"&&counter&&"位来访者!

"
response.write(tms)
for i=1 to countlen
images(i)=""
next
response.write images(1)&&images(2)&&images(3)&&images(4)&&images(5)&&images(6)&&images(7)
rs.Close
%>

[1]

如何防止计数器刷新计数?由讯客互联技术交流栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“如何防止计数器刷新计数?