人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當(dāng)前位置:蘿卜系統(tǒng)下載站 > 技術(shù)開發(fā)教程 > 詳細(xì)頁面

用ASP完成免費計數(shù)器提供-1

用ASP完成免費計數(shù)器提供-1

更新時間:2022-07-18 文章作者:未知 信息來源:網(wǎng)絡(luò) 閱讀次數(shù):


要實現(xiàn)免費提供計數(shù)器,我們必須準(zhǔn)備代表0-9這10個數(shù)字的gif圖片,便依次命名為0.gif-9.gif.在主頁目錄下建立一個目
錄free,把圖片文件counter.asp,user.html,reg.asp,manage.asp,dele.asp,easpcount.asp放在free目錄下.
1.存放用戶數(shù)據(jù)的記數(shù)文件counter.asp
<%Response.Write "拒絕訪問!" : Response.end%>

2.用戶申請程序:user.html

<html><title>計數(shù)器申請</title>

<body style="background-color:#f7f7fb">

<form name="formname" action="reg.asp" method=post >

<p align="center" style="font-size:24pt;font-weight:bold;color:#800000">計數(shù)器申請</p>

<table border="0" cellspacing="0" width="300" style="font-size:10pt">

<tr><td align="left">用戶名稱:<input type="text" size="30" name="name"></td></tr>

<tr><td align="left">用戶密碼:<input type="password" size="30" name="pass"></td></tr>

<tr><td align="left">主頁名稱:<input type="text" size="30" name="homename"></td></tr>

<tr><td align="left">主頁地址:<input type="text" size="30" name="url" ></td> </tr>

<tr><td align="left">

<input type="submit" value="完 成"> <input type="reset" value="取 消">

</td></tr></table></form></body>
3.處理用戶申請程序reg.asp
<%
Response.Expires=0
dim input()
name = Request.Form("name")
pass = Request.Form("pass")
homename = Request.Form("homename")
url = Request.Form("url")
infile = server.mappath("counter.asp")
Set fs = CreateObject("Scripting.FileSystemObject")
Set thisfile = fs.OpenTextFile(infile,1,False)
counter = 0
do while not thisfile.AtEndOfStream
thisline = thisfile.readline
Redim preserve input(counter)
input(counter) = thisline
counter = counter + 1
loop
thisfile.Close
for i=0 to counter-1
if name=input(i) then
Response.write "<body bgcolor=#f7f7fb><p> <p align='center'>對不起,已有這個用戶名</p>"
Response.write "<p align='center'><a href='javascript:history.go(-1);'>點擊這里進(jìn)行修改</a></p></body>"
Response.end
exit for
end if
next
Set outfile = fs.CreateTextFile(infile)
outfile.WriteLine input(0)
outfile.WriteLine name
outfile.WriteLine pass
outfile.WriteLine homename
outfile.WriteLine url
outfile.WriteLine 0
for i=1 to counter-1
outfile.WriteLine input(i)
next
outfile.close
set fs=nothing
strs="<script src=http://gp/wwwroot/free/easpcount.asp?id="&name&"></script>"
'src中"http://gp/wwwroot/"為你的主頁空間主目錄
Response.write "<body bgcolor=#f7f7fb><p> <p align='center'><font style='color:red'>"&name&"</font> 你已申
請成功,請將以下代碼粘貼到你的網(wǎng)頁代碼中</p>"
Response.write "<p align='center' style='color:#800000'>"&server.htmlencode(strs)&"</p>"
Response.end
%>
---------------------------------------------------
(出處:熱點網(wǎng)絡(luò))

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統(tǒng)下載排行

網(wǎng)站地圖xml | 網(wǎng)站地圖html
主站蜘蛛池模板: 芮城县| 富平县| 安阳县| 揭西县| 大连市| 措美县| 墨竹工卡县| 海淀区| 清水县| 舞阳县| 新宁县| 石家庄市| 鄯善县| 平罗县| 普陀区| 重庆市| 苍山县| 宁武县| 休宁县| 雅安市| 绿春县| 行唐县| 丹阳市| 德清县| 桂东县| 当涂县| 含山县| 喀喇沁旗| 乌拉特中旗| 胶南市| 灵石县| 台南县| 江城| 兰州市| 枣阳市| 阳城县| 射洪县| 郓城县| 大邑县| 体育| 金乡县|