< a href=counter.asp?save=123 file file file file file file #106avascript" response.write "document.write(""" """);" % > [1]" />

欧美大屁股bbbbxxxx,狼人大香伊蕉国产www亚洲,男ji大巴进入女人的视频小说,男人把ji大巴放进女人免费视频,免费情侣作爱视频

歡迎來到入門教程網(wǎng)!

編程問答

當(dāng)前位置:主頁 > 網(wǎng)絡(luò)編程 > 編程問答 >

如何實現(xiàn)點擊數(shù)的計算?

來源:本站原創(chuàng)|時間:2020-01-11|欄目:編程問答|點擊: 次

counter.htm<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

a href=counter.asp?save=123&url=http://127.0.0.1/http://127.0.0.1/a
共點擊次數(shù):<script src=view.asp?save=123></script

counter.asp
%
path="d:data"
file=request("save")

url=request("url")
Set fs = CreateObject("Scripting.FileSystemObject")
if fs.FileExists(path & file & ".txt") then
Set thisfile = fs.OpenTextFile(path & file & ".txt", 1, False)
number=thisfile.readline + 1
thisfile.Close
Set outfile=fs.CreateTextFile(path & file & ".txt")
outfile.WriteLine number
outfile.close
set fs=nothing
else
number=1
Set outfile=fs.CreateTextFile(path & file & ".txt")
outfile.WriteLine number
outfile.close
set fs=nothing


end if
response.redirect url
%


view.asp
%
path="d:data"
file=request("save")
Set fs = CreateObject("Scripting.FileSystemObject")
if fs.FileExists(path & file & ".txt") then
Set thisfile = fs.OpenTextFile(path & file & ".txt", 1, False)
number=thisfile.readline
thisfile.Close
set fs=nothing
else
number=0

end if
response.contenttype = "application/x-javascript"
response.write "document.write(""" & number & """);"
%

[1]

上一篇:如何判斷電子郵件的地址格式是否正確?

欄    目:編程問答

下一篇:沒有了

本文標(biāo)題:如何實現(xiàn)點擊數(shù)的計算?

本文地址:http://mengdiqiu.com.cn/a1/bianchengwenda/12107.html

網(wǎng)頁制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語言數(shù)據(jù)庫服務(wù)器

如果侵犯了您的權(quán)利,請與我們聯(lián)系,我們將在24小時內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有