国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 編程設計 > 正文

如何防止計數器刷新計數?

2020-06-19 13:49:58
字體:
來源:轉載
供稿:網友

如何防止計數器刷新計數?

<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&&"<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]

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 元阳县| 赫章县| 雷波县| 吴忠市| 九龙县| 博爱县| 卢湾区| 临沧市| 齐齐哈尔市| 图木舒克市| 徐州市| 汶上县| 临沭县| 长沙县| 亳州市| 辽阳市| 南溪县| 永仁县| 左云县| 休宁县| 施秉县| 巨鹿县| 卢氏县| 康马县| 手游| 通河县| 焦作市| 石台县| 昭苏县| 屏东市| 东平县| 闸北区| 楚雄市| 乐安县| 桐庐县| 海原县| 安国市| 砚山县| 五华县| 中牟县| 中牟县|