📄 room.txt
字号:
writeln(' else')
writeln(' Sform.To.value = parent.GetId(Cform.To.value);')
writeln(' if (Cform.Content.value == \'\')')
writeln(' {')
writeln(' Cform.Content.focus();')
writeln(' return false;')
writeln(' }')
writeln(' else')
writeln(' {')
writeln(' if (IsRepeat(Cform.Content.value))')
writeln(' {')
writeln(' alert(\'请不要重复说话!\');')
writeln(' Cform.Content.focus();')
writeln(' return false;')
writeln(' }')
writeln(' AddSay(Cform.Content.value);')
writeln(' Sform.Content.value = Cform.Content.value;')
writeln(' }')
writeln(' if (bSecret)')
writeln(' Sform.Secret.value = \'on\';')
writeln(' else')
writeln(' Sform.Secret.value = \'off\';')
writeln(' var the_content=Cform.Content.value;')
writeln(' if((the_content.indexOf("屁眼")!=-1)||(the_content.indexOf("操你")!=-1)||(the_content.indexOf("包皮")!=-1)||(the_content.indexOf("龟头")!=-1)||(the_content.indexOf("奶子")!=-1)||(the_content.indexOf("肏")!=-1)||(the_content.indexOf("妣")!=-1)||(the_content.indexOf("赑")!=-1)||(the_content.indexOf("屄")!=-1)||(the_content.indexOf("睾丸")!=-1)||(the_content.indexOf("鸡巴")!=-1)||(the_content.indexOf("逼")!=-1)||(the_content.indexOf("尻")!=-1)||(the_content.indexOf("法轮大法")!=-1)||(the_content.indexOf("法轮功")!=-1)||(the_content.indexOf("法轮")!=-1)||(the_content.indexOf("阴道")!=-1)||(the_content.indexOf("阴茎")!=-1))')
writeln(' {')
writeln(' Cform.Content.value="";')
writeln(' Cform.Content.focus();')
writeln(' return false;')
writeln(' }')
writeln(' Sform.Emote.value = Cform.Emote.value;')
writeln(' Sform.Image.value = Cform.Image.value;')
writeln(' Sform.Color.value = Cform.Color.value;')
writeln(' Sform.submit();')
writeln(' Cform.Content.value = \'\';')
writeln(' Cform.Image.value = \'\';')
writeln(' Cform.Content.focus();')
writeln(' return false;')
writeln('}')
writeln('COpen();')
write('</')
write('script')
writeln('>')
writeln('</center></body>')
writeln('</html>')
}
}
function LoadUserList()
{
hidden.location.href = 'http://'+RoomIp+':'+MainPort+'/UserList?Port='+RoomPort+'';
clearTimeout(temp);
temp = setTimeout("LoadUserList()",60000);
}
function WriteUserListPage()
{
with (UserlistFrame.document) {
writeln('<html>')
writeln('<head>')
writeln('<meta http-equiv=\'Content-Type\' content=\'text/html; charset=gb2312\'>')
writeln('<STYLE type=text/css>')
writeln('<!--')
writeln('a:link,a:visited { color: #0000FF; text-decoration: none} a:hover { color: #FF0000}')
writeln('body,td,select { font-family: "宋体"; font-size: 12px; line-height: 150%}')
writeln('-->')
writeln('</style>')
writeln('</head>')
writeln('<body bgcolor=#DDDDFF onkeydown=\"if(event.keyCode==27)return false;\" oncontextmenu=\"return false;\">')
writeln('<center><img src=http://www.tamud.com/echat/image/logo.gif>')
writeln('<table width=100% border=0>')
writeln('<tr>')
writeln('<td id=main>')
writeln('</td>')
writeln('</tr>')
writeln('</table>')
writeln('<script>')
writeln('parent.ReWriteList()')
write('</')
writeln('script>')
writeln('</center></body>')
writeln('</html>')
}
}
function WriteUserInfoPage(username)
{
with (UserInfoFrame.document) {
writeln('<html>')
writeln('<head>')
writeln('<meta http-equiv=\'Content-Type\' content=\'text/html; charset=gb2312\'>')
writeln('<STYLE type=text/css>')
writeln('<!--')
writeln('td { font-family: "宋体"; font-size: 12px; line-height: 14pt}')
writeln('-->')
writeln('</style>')
writeln('</head>')
writeln('<body bgcolor=#DDDDFF topmargin=0 leftmargin=0 onkeydown=\"if(event.keyCode==27)return false;\" oncontextmenu=\"return false;\">')
writeln('<table width="150" border="0" cellspacing="0" cellpadding="0" height="100">')
writeln('<tr>')
writeln('<td colspan="2" height="20">')
writeln('<div align="center"><span id=name1></span></div>')
writeln('</td>')
writeln('</tr>')
writeln('<tr>')
writeln('<td rowspan="4" width="65" height="80" align=center><img name=pic width=32 height=32 border=0></td>')
writeln('<td> 用户性别:<span id=sex></span></td>')
writeln('</tr>')
writeln('<tr>')
writeln('<td> 聊天等级:<span id=level></span></td>')
writeln('</tr>')
writeln('<tr>')
writeln('<td> 在线状态:<span id=line></span></td>')
writeln('</tr>')
writeln('<tr>')
writeln('<td> 是否注册:<span id=reg></span></td>')
writeln('</tr>')
writeln('</table>')
writeln('<script>')
writeln('parent.ViewPeo(\'' + username + '\')')
write('</')
writeln('script>')
writeln('</body>')
writeln('</html>')
}
}
function Replace(pStr,pbRep,pRep)
{
var nLen = pbRep.length;
var pReturnStr = '';
for (var i = 0; i < pStr.length; i++)
{
if (pStr.charAt(i) == pbRep.charAt(0) && i + nLen <= pStr.length)
{
var b = true;
for (var j = i + 1; j < i + nLen; j++)
if (pStr.charAt(j) != pbRep.charAt(j - i))
{
b = false;
break;
}
if (b)
{
pReturnStr += pRep;
i += nLen - 1;
}
else
pReturnStr += pStr.charAt(i);
}
else
pReturnStr += pStr.charAt(i);
}
return pReturnStr;
}
function SetTo(pTo)
{
var i = 0;
if (pTo == '')
{
ControlFrame.Cform.To.value = '所有人';
ControlFrame.Cform.Content.focus();
return;
}
if ((i = List[0].FindUser(pTo)) != -1)
ControlFrame.Cform.To.value = List[0].pObject[i].pStrName;
else
ControlFrame.Cform.To.value = pTo;
ControlFrame.Cform.Content.focus();
}
function GetId(pName)
{
for (var i = 0; i < List[0].pObject.length;i ++)
{
if (List[0].pObject[i].pStrName == pName)
return List[0].pObject[i].pStrId;
}
return pName;
}
function WriteScreen_All(pStr)
{
if (this.pScreen == null)
return;
this.pScreen.main.innerHTML += pStr;
}
function ReWriteScreen_All(pStr)
{
if (this.pScreen == null)
return;
this.pScreen.main.innerHTML = pStr;
}
function EmptyScreen_All()
{
this.ReWriteScreen('');
}
function DelElement_All(i)
{
if (i >= this.pObject.length || i < 0)
return -1;
var pObject = new Array();
var k = 0;
for (var j = 0; j < this.pObject.length; j++)
if (j != i)
{
pObject[k] = this.pObject[j];
k ++;
}
this.pObject = pObject;
return this.pObject.length;
}
function EmptyData_All()
{
this.pObject = new Array();
return 0;
}
function IsThis_User(pStrId)
{
return (this.pStrId == pStrId);
}
function User()
{
this.pStrName = '';
this.pStrId = '';
this.nSex = 0;
this.nLevel = 0;
this.nActive = 1;
this.pStrPic = '';
this.bReg = 0;
this.pMovePhone = 0;
this.IsThis = IsThis_User;
}
function AddElement_UserList()
{
this.pObject[this.pObject.length] = new User();
return this.pObject.length;
}
function AddUser_UserList(pStrName,pStrId,nSex,nLevel,nActive,pStrPic,bReg,pMovePhone)
{
if (this.nType == 0 || (this.nType == 1 && nSex == 0) || (this.nType == 2 && nSex == 1) || (this.nType == 3 && nSex == 2) || (this.nType == 4 && nActive == 0) || (this.nType == 5 && nActive != 0))
{
this.AddElement();
this.pObject[this.pObject.length - 1].pStrName = pStrName;
this.pObject[this.pObject.length - 1].pStrId = pStrId;
this.pObject[this.pObject.length - 1].nSex = nSex;
this.pObject[this.pObject.length - 1].nLevel = nLevel;
this.pObject[this.pObject.length - 1].nActive = nActive;
this.pObject[this.pObject.length - 1].pStrPic = pStrPic;
this.pObject[this.pObject.length - 1].bReg = bReg;
this.pObject[this.pObject.length - 1].pMovePhone = pMovePhone;
return this.pObject.length;
}
else
return this.pObject.length;
}
function SetUserList_UserList(pObject)
{
this.EmptyData();
for (var i = 0; i < pObject.length; i ++)
this.AddUser(pObject[i][0],pObject[i][1],pObject[i][2],pObject[i][3],pObject[i][4],pObject[i][5],pObject[i][6],pObject[i][7]);
}
function ViewUserList_UserList()
{
var pStr = '<table><tr><form name=t><td><span id=RoomList></span><br><select name=t class=the_button onchange=parent.Seclect()>\r\n<option value=-1>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -