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

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



</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ' '; mso-hansi-font-family: ' '; mso-bidi-font-size: 9.0pt">千花飞舞之真实的计数器</span><span 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]

你可能感兴趣的:(如何防止计数器刷新计数?)