⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 liaotian.asp

📁 自己的简单聊天程序 简单实用
💻 ASP
字号:
<% @ Language=VBScript %> 

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>聊天室</title>
</head>

<body>
<% 
Response.Buffer=true  
On error resume next 
If Request.ServerVariables("Request_Method")="GET" then 

%> 

<form method="POST" action="liaotian.asp"><p>
<input type="text" name="nick" size="20" value="nick" style="background-color: rgb(192,192,192)"><br> 
<input type="submit" value=" 进 入 聊 天 室 " name="B1" style="color: rgb(255,255,0); font-size: 9pt; background-color: rgb(0,128,128)"> 
<p><input type="hidden" name="log" size="20" value="1"><br></p> 
</form> 


<% 
Response.End 

Else 
Response.clear 

dim talk 
If Request.Form("nick")<>"" then 
 
Session("nick")=Request.Form("nick") 
End If 


%> 
<% 
If Request.Form("log")<>1 then 
If trim(Request.Form("talk"))="" then 

talk=Session("nick")&" 沉 默 是 金。" 
Else 
talk=trim(Request.Form("talk")) 

End If 

Application.lock 
Application("show")="<table border='1' cellpadding='0' cellspacing='0' width='85%'><tr><td width='100%' bgcolor='#C0C0C0'></td></tr><tr><td width='100%'><font color='#0000FF'> 来 自 "&Request.ServerVariables("remote_addr")&" 的 "&Session("nick")&time&" 说:</font>"&talk&"</td></tr><tr><td width='100%' bgcolor='#C0C0C0'></td></tr></table><br>"&Application("show") 
Application.UnLock 

Response.Write Application("show") 
End If 
End If 
%> 
<form method="POST" action="liaotian.asp" name=form1> <p><%=Session("nick")%> 说 话:<input type="text" name="talk" size="50"><br> 
<input type="submit" value=" 提 交 " name="B1"> 
<input type="reset" value=" 取 消 " name="B2"></p> 
</form> 
<A HREF="liaotian.asp"> 离 开 </a><br><br> 


 
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -