第一步,創建一個計數器(最簡單的數字計數器,不是圖片式的):
<% @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]