?? index_temp.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 + -