📄 default.asp
字号:
<%@ Language=VBScript%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎进入本聊天室</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<script language="jscript">
<!--
function Check()
{
var NotNull
NotNull=true
if (document.Login.UID.value=="")
{
window.alert("请输入姓名")
NotNull=false
}
if (document.Login.PWD.value=="")
{
window.alert("请输入密码")
NotNull=false
}
if (document.Login.NickName.value=="")
{
window.alert("请输入昵称!")
NotNull=false
}
return NotNull
}
//-->
</script>
<style type="text/css">
<!--
a:visited,a:link { text-decoration: none; color: #003399}
a:hover { text-decoration: none; color: #3333FF}
a.linkwhite:link,a.linkwhite:visited { text-decoration:none; color:white}
a.linkwhite:hover { text-decoration: underline; color:white}
a.linkblack:link,a.linkblack:visited { text-decoration:none; color:black}
a.linkblack:hover { text-decoration: underline; color:black}
input { font-family: "宋体"; font-size: 9pt}
td { font-family: "宋体"; font-size: 9pt; color: #000000}
.en { font-family:"Verdana", "Arial"; font-size: 9pt}
.white { color: #FFFFFF}
.line { line-height: 20px}
.title { font-size: 14px }
-->
</style>
</head>
<body>
<%
dim mysql,howmanyusers
set myuser=server.CreateObject ("ADODB.Recordset")
mysql="select * from UserOnLine"
myuser.Open mysql,"DSN=ChatRoom",1,3
if not myuser.BOF then
myuser.MoveLast
howmanyusers=myuser.RecordCount
else
howmanyusers=0
end if
myuser.Close
set myuser=nothing
'Response.Write application("time")
%>
<p align="right"><em><font color="#0080ff"><big><strong>本聊天室由busyants制作</strong></big></font></em></p>
<form name="Login" method="post" action="Enter.asp" align="center" onSubmit="return Check()">
<div align="center"><center><table border="1" width="36%" bgColor="#ffe4b5" style="HEIGHT: 237px; WIDTH: 306px" bordercolor="#0000ff">
<tr>
<td width="100%" align="middle" bgcolor="#ffffff" bordercolor="#808080"><big><big><strong><font color="#008080" face="隶书">欢迎进入busyants聊天室</font></strong></big></big></td>
</tr>
<tr>
<td width="100%" align="middle" bgcolor="#ccffff">
<p style="BACKGROUND-COLOR: antiquewhite" align="center"><font color="#800080">请输入你的大名:<BR></font><input name="UID" maxlength="10" > <br><font color="#800080">请输入你的密码:<br></font><input type="password" name="PWD" maxlength="10" ><BR><FONT
color=#800080>请输入你的昵称:<BR></FONT><INPUT name="NickName"><BR></p><p align="center"><input type="submit" value="提交" name="submit"> <input type="reset" value="清除" name="Reset"></p>
<CENTER></CENTER><p align="center"><font color="#800080"><font face="楷体_GB2312"><A href="Room.asp">查看当前聊天室</A>
</font> <font face="楷体_GB2312"><A href="NewUser.asp">新用户注册</A></font></font></p></td></tr>
<center>
<tr>
<td width="100%" align="middle" bgcolor="#ffccff"><i><font face="隶书"><font color="#0000ff">
<marquee behavior="alternate" scrolldelay="200" scrollamount="3" style="COLOR: #008000">目前本聊天室共有<% =howmanyusers %>人聊天</marquee>
</font></font></i></td>
</tr></table>
</center></div>
</form></CENTER>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -