当前位置: 移动技术网 > IT编程>开发语言>其他编程 > 如何做一个计数器并让人家申请使用?

如何做一个计数器并让人家申请使用?

2017年12月08日  | 移动技术网IT编程  | 我要评论

第一步,创建一个计数器(最简单的数字计数器,不是图片式的):

<% @language="vbscript" %> 

<% 

set fsfilesys=createobject("scripting.filesystemobject")

set mytext=fsfilesys.opentextfile(server.mappath("/count")&"\count.txt")count=mytext.readline

' 读存储在count.txt的计数值,可先写上8771990.

my text.close

count=count+1 

set mytext=fsfilesys.createtextfile(server.mappath("/count")&"\count.txt")

' 重写计数值.

mytext.writeline(count) 

mytext.close 

response.write "document.write('<%=count%>')" 

%> 

' 向客户端发送数字.

 

第二步,用以下语句提供申请:

<script language="javascript1.1" src="http://flashdays.126.com/count/count.asp">  

 

[1]

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网