虹雨的功能较全的计数程序

2016-01-29 17:19 4 1 收藏

虹雨的功能较全的计数程序,虹雨的功能较全的计数程序

【 tulaoshi.com - ASP 】

  这个程序难一点,特点在于,因为他是分别的传送每个图片,所以不像CGI产生的图片那样大。而且图片可以重复的利用所以较率高速度快。只是没有JavaScript就不行了。
程序原代码:


<%
imgurl="http://xxx.xxx.xxx/xxxx/" '图片路径
imgname="xxx" '图片名字
cnt=0
dnt=0
s=Request.ServerVariables("path_translated")
cName = left(s,instrrev(s,"",len(s)))&"chy.cnt"
dName = left(s,instrrev(s,"",len(s)))&"dchy.cnt"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objCountFile = objFSO.OpenTextFile(cName,1,True)
If Not objCountFile.AtEndOfStream Then cnt=CLng(objCountFile.ReadAll)
objCountFile.Close
Set objCountFile=Nothing
cnt=cnt+1
Set objCountFile=objFSO.CreateTextFile(cName,True)
objCountFile.Write cnt
objCountFile.Close
Set objCountFile=Nothing

if application("dntime")<=cint(hour(time())) then
Set objCountFile = objFSO.OpenTextFile(dName,1,True)
If Not objCountFile.AtEndOfStream Then dnt=CLng(objCountFile.ReadAll)
objCountFile.Close
Set objCountFile=Nothing
end if
application("dntime")=cint(hour(time()))
dnt=dnt+1
Set objCountFile=objFSO.CreateTextFile(dName,True)
objCountFile.Write dnt
objCountFile.Close
Set objCountFile=Nothing
Set objFSO = Nothing
Response.Write "document.write('99?7?10???"
for i=1 to len(cnt)
Response.Write "<img src="http://img.jcwcn.com/attachment/portal/jcwcj/2005-12/10/05121001161688071.gif""
next
Response.Write "
?????"
for i=1 to 4-len(dnt)
Response.Write "<img src="http://img.jcwcn.com/attachment/portal/jcwcj/2005-12/10/0512100116163082.gif""
next
for i=1 to len(dnt)
Response.Write "<img src="http://img.jcwcn.com/attachment/portal/jcwcj/2005-12/10/05121001161681055.gif""
next
t=(cint(day(date()))*24+cint(hour(time())))*60+cint(minute(time()))
k=0
i=1
y=0
Do While application("zxip"&i)<""
if application("zxip"&i)=Request.ServerVariables("REMOTE_ADDR") then
application("zxsj"&i)=t
y=1
end if
if t-application("zxsj"&i)9 or t<application("zxsj"&i) then
k=k+1
else
if k0 then
application.lock
application("zxip"&i-k)=application("zxip"&i)
application("zxsj"&i-k)=application("zxsj"&i)
application.unlock
end if
end if
if k0 then
application.lock
application("zxip"&i)=""
application.unlock
end if
i=i+1
loop
if y=0 then
application("zxip"&i)=Request.ServerVariables("REMOTE_ADDR")
application("zxsj"&i)=t
else
i=i-1
end if
Response.Write " ?????"
if len(i)=1 then Response.Write "<img src="http://img.jcwcn.com/attachment/portal/jcwcj/2005-12/10/0512100116163082.gif""
for j=1 to len(i)
Response.Write "<img src="http://img.jcwcn.com/attachment/portal/jcwcj/2005-12/10/0512100116162893.gif""
next
Response.Write "');"%

 

来源:https://www.tulaoshi.com/n/20160129/1500960.html

延伸阅读
标签: 养花
虹之玉是什么?虹之玉的养殖方法 虹之玉的简介 虹之玉也叫耳坠草、玉米粒,(市面上通常俗称葡萄掌)为景天科景天属多肉植物,喜温暖,不耐寒。喜光照,有较强的耐旱性。适应性强,对土壤要求不严。 虹之玉的养殖方法 虹之玉喜昼夜温差明显的环境。 对温度的适应性较强,在10℃至28℃之间均可良好生长。秋冬...
标签: ASP
  不能ASP图像组件来生成图像的ASP计数器程序 这是我去年编的一个ASP程序,那时用惯了C语言,所以对Basic反而忘了,但由于觉得ASP很热门,所以试着编了这个程序,程序没经过优化,代码很长,主要是数据那时候不知道该怎么用:) 别笑我,因为现在我会用啦!! 这是个简单的计数器申请系统,采用文本,所以只要是支持ASP的空间就都可以测试!! ...
标签: 花卉
虹之玉 也叫耳坠草、玉米粒,为景天科景天属多肉植物,喜温暖,不耐寒。喜光照,有较强的耐旱性。适应性强,对土壤要求不严。那么,虹之玉的养殖方法是什么呢?下面来看看吧。 一、虹之玉的养殖方法 虹之玉喜昼夜温差明显的环境。对温度的适应性较强,在10℃至28℃之间均可良好生长。 秋冬季节气温降低,光照增...
标签: ASP
  data1(3,6,0)=0 data1(3,6,1)=0 data1(3,6,2)=0 data1(3,6,3)=0 data1(3,6,4)=0 data1(3,6,5)=0 data1(3,6,6)=0 data1(3,6,7)=1 data1(3,5,0)=0 data1(3,5,1)=0 data1(3,5,2)=0 data1(3,5,3)=0 data1(3,5,4)=0 data1(3,5,5)=0 data1(3,5,6)=0 data1(3,5,7)=1 data1(3,4,0)=0 data1(3,4,1)=1 data1(3,4,2)=1 data1(3,4,3)=1 data1(3,4,...
标签: Web开发
  其实代码非常简单:  SCRIPT LANGUAGE="javascript"  !--  window.open ('page.html')  --  /SCRIPT  因为着是一段javascripts代码,所以它们应该放在SCRIPT LANGUAGE="javascr  ipt"标签和/script之间。!-- 和 --是对一些版本低的浏览器起作用,在这  些...

经验教程

609

收藏

60
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部