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

📄 index.txt

📁 聊天
💻 TXT
字号:
[::Script]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV=REFRESH CONTENT='300'>
<title>Echat Server 专业聊天服务器 演示聊天室</title>
<style type="text/css">
<!--
.echat {
	font-family: "Georgia", "Times New Roman", "Times", "serif";
	font-size: 20px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
	text-decoration: underline;
}
td,input {
        font-size: 12px;
}
a {
        color: blue; 
        text-decoration: underline;
}
-->
</style>

<SCRIPT language=JavaScript>
var online_now=0,online_total=0,fullscreen=0;
function fullchat()
{
if (fullscreen==0) fullscreen=1;
else fullscreen=0;
}
for (var i = 0;i < A.length; i++)
{
online_now+=A[i][2];
online_total+=A[i][3];
}
modify_flag=0;
ctrlroom_flag=0;
function checkform()
{
if(document.the_form.username.value=="")
{alert("请输入聊天名字!");
return false;}
else
{
newWindow=openWin('','chatroom','toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=1');
newWindow.focus();
return true;
}
}
function modify()
{
if(modify_flag==0)
{
super_form.action="http://[::Ip]:[::Port]/readyedit";
super_info.innerHTML='名字:<input type=text name=username size=10 maxlength=20> 密码:<input type=password name=userpass size=10 maxlength=20> <input type=submit value=修改资料>';
modify_flag=1;
ctrlroom_flag=0;
}
else
{
super_form.action="http://[::Ip]:[::Port]/manager";
super_info.innerHTML='聊管:<input type=text name=managerid size=10 maxlength=20> 密码:<input type=password name=managerpass size=10 maxlength=20><input type=hidden name=userpic value=-1> <input type=submit value=房间管理>';
modify_flag=0;
}
}
function manage()
{
if(ctrlroom_flag==0)
{
super_form.action="http://[::Ip]:[::Port]/ctrlroom";
super_info.innerHTML='聊管:<input type=text name=managerid size=10 maxlength=20> 密码:<input type=password name=managerpass size=10 maxlength=20> 端口:<input type=text name=roomport size=10 maxlength=5> <input type=submit value=权限管理>';
ctrlroom_flag=1;
modify_flag=0;
}
else
{
super_form.action="http://[::Ip]:[::Port]/manager";
super_info.innerHTML='聊管:<input type=text name=managerid size=10 maxlength=20> 密码:<input type=password name=managerpass size=10 maxlength=20><input type=hidden name=userpic value=-1> <input type=submit value=房间管理>';
ctrlroom_flag=0;
}
}
function openWin( windowURL, windowName, windowFeatures ) { 
if (fullscreen==0) return window.open( windowURL, windowName, windowFeatures ) ; 
else return window.open( windowURL, windowName, windowFeatures+',fullscreen=1' ) ; 
}
function regname()
{
openWin('http://[::Ip]:[::Port]/readyreg','register','width=280,height=468,toolbar=0,location=0,directories=0,status=0,menuBar=1,scrollBars=0,resizable=1');
}
function creatroom()
{
super_form.action="http://[::Ip]:[::Port]/manager";
super_info.innerHTML='聊管:<input type=text name=managerid size=10 maxlength=20> 密码:<input type=password name=managerpass size=10 maxlength=20><input type=hidden name=userpic value=-1> <input type=submit value=房间管理>';
alert('只有255级的聊管才能创建和关闭房间');
}
</script>

</head>

<body bgcolor="#FFFFFF">
<center><br><br>
<table width="650" border="0" cellpadding="0" cellspacing="0" bgcolor="#73C7F7">
<tr> 
<td height="5"></td>
</tr>
</table>

<table width="650" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" style="border-collapse:collapse">
<tr><td width="180" height="300" valign="top">

<table width="100%" border="0" cellspacing="10" cellpadding="1">
<tr><td height="40" bgcolor="#0B78B9" class="echat">Echat Server</td></tr>
</table>

<script language="JavaScript">
<!--
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='3'>");
document.write("<form name=the_form method='POST' action=http://[::Ip]:[::Port]/ReadyJoin?Port=\"+A[0][1]+\" target=chatroom onSubmit=return checkform();>");
document.write("<tr><td align=center>本系统现运行[<font color=red>");
document.write(A.length);
document.write("</font>]个聊天室</td></tr>");
document.write("<tr><td align=center><font color=blue>当前在线人数:");
document.write(online_now);
document.write("人</font></td></tr>");
document.write("<tr><td align=center><font color=blue>最高在线人数:");
document.write(online_total);
document.write("人</font></td>");
document.write("</tr><tr><td align=center>[<a href=javascript:regname();><font color=red>注册</font></a>] 游客无需密码</td></tr><tr><td align=center>");

var num = 0;

function CForw()
{
	if (num == 0)
		num = 65;
	else
		num --;

	document.images['face'].src = 'http://[::Ip]:[::Port]/Image?ImageId='+num;
	the_form.userpic.value = num;
}

function CBack()
{
	if (num == 65)
		num = 0;
	else
		num ++;

	document.images['face'].src = 'http://[::Ip]:[::Port]/Image?ImageId='+num;
	the_form.userpic.value = num;
}

function WriteForm()
{
if (A.length > 0)
{
with (document)
{
write("<input type=button value='

⌨️ 快捷键说明

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