asp简单文本计数器
asp简单文本计数器
发布时间:2015-06-05 来源:查字典编辑
摘要:Numberofhits:人数在您的文件将增加到每一次您的网页访问。最后一行在此脚本可以让您将显示的点击次数在您的回复页面。

<%
Set fs = CreateObject("Scripting.FileSystemObject")
Wfile=server.mappath("") & "cgi-/asp/asp.html.txt"
on error resume next
Set a = fs.OpenTextFile(Wfile)
hits = Clng(a.ReadLine)
hits = hits + 1
a.close

if error then
hits = 1
end if

Set a = fs.CreateTextFile(Wfile,True)
a.WriteLine(hits)
a.Close
%>

Number of hits: <% =hits %>

人数在您的文件将增加到每一次您的网页访问。最后一行在此脚本可以让您将显示的点击次数在您的回复页面。

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新ASP教程学习
热门ASP教程学习
编程开发子分类