2008年(5645)
分类:
2008-04-28 14:20:36
<% Application("MyName") = "cnbruce" %> |
<% Application.Lock Application("NumVisits") = Application("NumVisits") 1 Application.Unlock %> 你是本页的第<%=Application("NumVisits")%>位访问者 |
<% if Application("NumVisits")<9999 then Application("NumVisits")=10000 end if Application.Lock Application("NumVisits") = Application("NumVisits") 1 Application.Unlock %> 你是本页的第<%=Application("NumVisits")%>位访问者 |
<% if session("visitnum")="" then Application.Lock Application("NumVisits") = Application("NumVisits") 1 Application.Unlock session("visitnum")="visited" end if %> 你是本页的第<%=Application("NumVisits")%>位访问者 |
<%@ LANGUAGE = VBScript %> <% Option Explicit %> <% '设置页面不使用缓存 Response.Expires = 0 %> <% dim GuessNum on error resume next GuessNum=Request("Number") if GuessNum="" then GuessNum="0" End if GuessNum=Clng(GuessNum) Session("Count")=Session("Count") 1 if Session("Count") < 10 and GuessNum <> session("Number") then %> <% end if if GuessNum<0 or guessNum>100 then Response.write "请输入1~100之间的整数" elseif GuessNum=0 then session("Count") = 0 Randomize session("Number") = Int(rnd * 100 1) Response.write "请输入1~100之间的整数" elseif GuessNum > session("Number") then response.write "你猜的太大了" elseif GuessNum < session("Number") then response.write "你猜的太小了" elseif GuessNum = session("Number") then response.write "祝贺你,猜对了" end if Response.write " 共猜了" & Session("Count") & "次" if Session("Count")=10 then Response.write "答案是" & Session("Number") end if %> 重新猜 |
<% Application("MyName") = "cnbruce" %> |
<% Application.Lock Application("NumVisits") = Application("NumVisits") 1 Application.Unlock %> 你是本页的第<%=Application("NumVisits")%>位访问者 |
<% if Application("NumVisits")<9999 then Application("NumVisits")=10000 end if Application.Lock Application("NumVisits") = Application("NumVisits") 1 Application.Unlock %> 你是本页的第<%=Application("NumVisits")%>位访问者 |
<% if session("visitnum")="" then Application.Lock Application("NumVisits") = Application("NumVisits") 1 Application.Unlock session("visitnum")="visited" end if %> 你是本页的第<%=Application("NumVisits")%>位访问者 |
<%@ LANGUAGE = VBScript %> <% Option Explicit %> <% '设置页面不使用缓存 Response.Expires = 0 %> <% dim GuessNum on error resume next GuessNum=Request("Number") if GuessNum="" then GuessNum="0" End if GuessNum=Clng(GuessNum) Session("Count")=Session("Count") 1 if Session("Count") < 10 and GuessNum <> session("Number") then %> <% end if if GuessNum<0 or guessNum>100 then Response.write "请输入1~100之间的整数" elseif GuessNum=0 then session("Count") = 0 Randomize session("Number") = Int(rnd * 100 1) Response.write "请输入1~100之间的整数" elseif GuessNum > session("Number") then response.write "你猜的太大了" elseif GuessNum < session("Number") then response.write "你猜的太小了" elseif GuessNum = session("Number") then response.write "祝贺你,猜对了" end if Response.write " 共猜了" & Session("Count") & "次" if Session("Count")=10 then Response.write "答案是" & Session("Number") end if %> 重新猜 |