ASP 网站计数器代码

计数器源代码,你只需要在要统计的页面的同级目录里建一个"count.txt",在里面写上10,再把这段代码放到你要统计的页面里就可以了:

新建一个文本,在里面写入下面的代码,保存为asp文件,如1.asp,

<% '一个简单的计数器程序 Set fs=CreateObject("Scripting.FileSystemObject") Set a=fs.openTextFile(server.mappath("count.txt")) count=a.readline response.write "现在的访问量是:" & count count=count+1 Set fs = CreateObject("Scripting.FileSystemObject") Set a=fs.createTextfile(server.mappath("count.txt")) a.writeline (count) %>

This entry was posted in Technology. Bookmark the permalink. 7,350 views

Related Posts

One Response to ASP 网站计数器代码

  1. dddd says:

    bucuo

Leave a Reply

Your email address will not be published. Required fields are marked *