📄 system.htm
字号:
{
alert("不能查看\"机器人\"和\"大家\"的资料!");
parent.send.bird3.focus();
return false;
}
byts_seeinfo(b2);
byts_reset();
return;
break;
//============================================
case "//出招":
b3_temp = b3_temp.substring(4, b3_temp.length);
if (b3_temp == "" || b3_temp == "招式名称")
{
alert("请输入要使用的招式名称!");
parent.send.bird3.focus();
return false;
}
if (b2 == myname || b2 == parent.byts_xajh_chat_roomautoman || b2 == "大家")
{
alert("不能对\"自己\"、\"机器人\"和\"大家\"出招!");
parent.send.bird3.focus();
return false;
}
if (!confirm("你真的要对 " + b2 + " 使用 " + b3_temp + " 吗?"))
{
parent.send.bird3.focus();
return false;
}
byts_setsubmit(b2, b3_temp, "", "", "", "", "", "_18");
break;
//============================================
default:
if (b2 == myname)
{
alert("自言自语?");
parent.send.bird3.focus();
return false;
}
if (b2 == oldname && b3 == oldword)
{
alert("请不要对同一个人输入重复的发言!");
parent.send.bird3.focus();
return false;
}
var b14 = parent.send.bird14.value;
oldname = b2;
oldword = b3;
byts_addhis(b3)
if (parent.send.bird11.checked == true)
{
b11 = "yes";
}
else
{
b11 = "no";
}
if (parent.send.bird12.checked == true)
{
b12 = "yes";
}
else
{
b12 = "no";
}
byts_setsubmit(b2, b3, b9, b10, b11, b12, b14, "");
break;
//============================================
}
document.postwords.submit();
byts_reset();
if (system3 == true)
{
byts_setcolor();
}
parent.send.bird3.focus();
}
function byts_setsubmit(v1, v2, v3, v4, v5, v6, v7, filename)
{
document.postwords.v1.value = v1;
document.postwords.v2.value = v2;
document.postwords.v3.value = v3;
document.postwords.v4.value = v4;
document.postwords.v5.value = v5;
document.postwords.v6.value = v6;
document.postwords.v7.value = v7;
document.postwords.action = "../chat/addmsg" + filename + ".aspx";
}
function byts_reset()
{
byts_xajh_chat_maxtimeout = parent.byts_xajh_chat_maxtimeout;
parent.send.bird4.disabled = true;
setTimeout("parent.send.bird4.disabled = false",3000);
parent.send.bird3.value = "";
parent.send.bird12.checked = false;
parent.send.bird13.options[0].selected = true;
parent.send.bird15.options[0].selected = true;
}
function byts_getmsg(v1, v2, v3, v4, v5, v6, v7, v8, v9)
{
var msg;
var showmode = false;
switch (v1)
{
case "add":
v7 = v7.replace(/##/g,"<a oncontextmenu=\"byts_show('" + v2 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\">" + v2 + "</a>");
v7 = v7.replace(/%%/g,"<a oncontextmenu=\"byts_show('" + v3 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v3 + "');\">" + v3 + "</a>");
if (v2 != myname)
{
byts_addonline(v2,v4);
}
else
{
showmode = true;
}
msg = "<font style=\"color:#FF0000\">[<img border=\"0\" src=\"../xajhimg/sys.gif\" width=\"18\" height=\"18\" />" + v8 + "]</font>" + v7 + " <font style=\"font-size: 8pt; color: #6885D9\">(" + v9 + ")</font>";
byts_printmsg(v2,v3,showmode,msg);
byts_systemsound("in.mid");
break;
case "del":
v7 = v7.replace(/##/g,"<a oncontextmenu=\"byts_show('" + v2 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\">" + v2 + "</a>");
v7 = v7.replace(/%%/g,"<a oncontextmenu=\"byts_show('" + v3 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v3 + "');\">" + v3 + "</a>");
byts_delonline(v2);
msg = "<font style=\"color:#FF0000\">[<img border=\"0\" src=\"../xajhimg/sys.gif\" width=\"18\" height=\"18\" />" + v8 + "]</font>" + v7 + " <font style=\"font-size: 8pt; color: #6885D9\">(" + v9 + ")</font>";
byts_printmsg(v2,v3,showmode,msg);
byts_systemsound("out.wav");
break;
case "update":
v7 = v7.replace(/##/g,"<a oncontextmenu=\"byts_show('" + v2 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\">" + v2 + "</a>");
v7 = v7.replace(/%%/g,"<a oncontextmenu=\"byts_show('" + v3 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v3 + "');\">" + v3 + "</a>");
byts_updateonline(v2,v4);
msg = "<font style=\"color:#FF0000\">[<img border=\"0\" src=\"../xajhimg/sys.gif\" width=\"18\" height=\"18\" />" + v8 + "]</font>" + v7 + " <font style=\"font-size: 8pt; color: #6885D9\">(" + v9 + ")</font>";
if (v3 == myname)
{
showmode = true;
}
byts_printmsg(v2,v3,showmode,msg);
byts_systemsound("up.mid");
break;
case "all":
v7 = v7.replace(/##/g,"<a oncontextmenu=\"byts_show('" + v2 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\" style=\"color:" + byts_getmycolor(v5) + "\">" + v2 + "</a>");
v7 = v7.replace(/%%/g,"<a oncontextmenu=\"byts_show('" + v3 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v3 + "');\">" + v3 + "</a>");
if (v7.indexOf("//") == 0)
{
msg = "<font style=\"color:" + byts_getmycolor(v6) + "\">" + v7.substring(2,v7.length) + "</font>";
}
else
{
msg = byts_getmyface(v4) + "对<a oncontextmenu=\"byts_show('" + v3 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v3 + "');\">" + v3 + "</a>说:" + "<font style=\"color:" + byts_getmycolor(v6) + "\">" + v7 + "</font>";
}
msg = "<a oncontextmenu=\"byts_show('" + v2 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\" style=\"color:" + byts_getmycolor(v5) + "\">" + v2 + "</a>" + msg + " <font style=\"font-size: 8pt; color: #6885D9\">(" + v9 + ")</font>";
if (v2 == myname || v3 == myname)
{
showmode = true;
}
byts_printmsg(v2,v3,showmode,msg);
break;
case "only":
v7 = v7.replace(/##/g,"<a oncontextmenu=\"byts_show('" + v2 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\" style=\"color:" + byts_getmycolor(v5) + "\">" + v2 + "</a>");
v7 = v7.replace(/%%/g,"<a oncontextmenu=\"byts_show('" + v3 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v3 + "');\">" + v3 + "</a>");
switch (v8)
{
case "webicq":
if (v2 != myname)
{
if (system4 == true)
{
byts_showwebicq(v7,v2,v9,true,0,"");
}
else
{
byts_printmsg("","",true,"<font style=\"color:#FF0000\">[提示]</font>『<font style=\"color:#0000FF\">" + v2 + "</font>』给你发送的呼叫已经丢失。原因:你已经设置为 不接受呼叫。");
}
}
break;
case "song":
v7 = v7.replace(/##/g,"<a oncontextmenu=\"byts_show('" + v2 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\">" + v2 + "</a>");
v7 = v7.replace(/%%/g,"<a oncontextmenu=\"byts_show('" + v3 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v3 + "');\">" + v3 + "</a>");
if (v2 != myname)
{
if (system5 == true)
{
byts_showwebicq(v7,v2,v9,true,0,v4);
}
else
{
byts_printmsg("","",true,"<font style=\"color:#FF0000\">[提示]</font>『<font style=\"color:#0000FF\">" + v2 + "</font>』给你发送的点歌已经丢失。原因:你已经设置为 不接受点歌。");
}
}
break;
default:
if (v7.indexOf("//") == 0)
{
msg = "<font style=\"color:" + byts_getmycolor(v6) + "\">" + v7.substring(2,v7.length) + "</font>";
}
else
{
msg = byts_getmyface(v4) + "对<a oncontextmenu=\"byts_show('" + v3 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v3 + "');\">" + v3 + "</a>说:" + "<font style=\"color:" + byts_getmycolor(v6) + "\">" + v7 + "</font>";
}
msg = "<font style=\"color:#FF0000\">[<img border=\"0\" src=\"../xajhimg/sec.gif\" width=\"18\" height=\"18\" />私聊]</font><a oncontextmenu=\"byts_show('" + v2 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\" style=\"color:" + byts_getmycolor(v5) + "\">" + v2 + "</a>" + msg + " <font style=\"font-size: 8pt; color: #6885D9\">(" + v9 + ")</font>";
showmode = true;
byts_printmsg(v2,v3,showmode,msg);
break;
}
break;
case "ran":
v7 = v7.replace(/##/g,"<a oncontextmenu=\"byts_show('" + v2 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\">" + v2 + "</a>");
v7 = v7.replace(/%%/g,"<a oncontextmenu=\"byts_show('" + v3 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v3 + "');\">" + v3 + "</a>");
msg = "<font style=\"color:#FF0000\">[<img border=\"0\" src=\"../xajhimg/" + v4 + "\" width=\"18\" height=\"18\" />" + v8 + "]</font>" + v7 + " <font style=\"font-size: 8pt; color: #6885D9\">(" + v9 + ")</font>";
if (v2 == myname || v3 == myname)
{
showmode = true;
}
byts_printmsg(v2,v3,showmode,msg);
break;
case "fly":
v7 = v7.replace(/##/g,"<a oncontextmenu=\"byts_show('" + v2 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\" style=\"color:" + byts_getmycolor(v5) + "\">" + v2 + "</a>");
v7 = v7.replace(/%%/g,"<a oncontextmenu=\"byts_show('" + v3 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v3 + "');\">" + v3 + "</a>");
msg = "<marquee scrollamount=\"1\" scrolldelay=\"5\" truespeed><font style=\"color:#FF0000\">[千里传音]</font><font style=\"color:" + byts_getmycolor(v6) + "\">" + v7 + "</font>(<a oncontextmenu=\"byts_show('" + v2 + "')\" href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\" style=\"color:" + byts_getmycolor(v5) + "\">" + v2 + "</a>) <font style=\"font-size: 8pt; color: #6885D9\">(" + v9 + ")</font></marquee>";
if (v2 == myname)
{
showmode = true;
}
byts_printmsg(v2,v3,showmode,msg);
break;
case "title":
v7 = v7.replace(/##/g,"<a href=\"javascript:parent.h0.byts_selecttalker('" + v2 + "');\" style=\"color:" + byts_getmycolor(v5) + "\">" + v2 + "</a>");
v7 = v7.replace(/%%/g,"<a href=\"javascript:parent.h0.byts_selecttalker('" + v3 + "');\">" + v3 + "</a>");
byts_show_title(v2,v7,byts_getmycolor(v5),byts_getmycolor(v6),v9);
break;
default:
break;
}
}
function byts_printmsg(v1, v2, v3, v4)
{
var bg;
if (v1 == myname)
{
bg = "background-color:" + color_self;
}
else if (v2 == myname)
{
bg = "background-color:" + color_tome;
}
else
{
bg = "";
}
if (v3 == false || system1 != true)
{
parent.show1.document.writeln ("<div style=\"width:100%;" + bg + "\">" + v4 + "</div>");
if (system7 == true)
{
parent.show1.scroll(0, 65534);
}
}
else
{
parent.show2.document.writeln ("<div style=\"width:100%;" + bg + "\">" + v4 + "</div>");
if (system7 == true)
{
parent.show2.scroll(0, 65534);
}
}
}
function byts_autogetword()
{
setTimeout("parent.h2.location.reload();byts_autogetword();",4000);
}
function byts_playmsg(v1, v2)
{
byts_printmsg("", "", true,"<font style=\"color:#FF0000\">[<img border=\"0\" src=\"../xajhimg/music.gif\" width=\"18\" height=\"18\" />点歌]</font>正在下载歌曲『<font style=\"color:#A00000\">" + v1 + "</font>』,播放方式为“<font style=\"color:#A00000\">" + v2 + "</font>”,请耐心等待......");
}
function byts_play(url, loop)
{
parent.h4.document.open();
parent.h4.document.write("<bgsound src=\"" + url + "\" loop=\"" + loop + "\">");
parent.h4.document.close();
}
function byts_systemsound(url)
{
parent.h5.document.open();
parent.h5.document.write("<bgsound src=\"../sound/" + url + "\" loop=\"1\">");
parent.h5.document.close();
}
function byts_stopsong()
{
parent.h4.document.open();
parent.h4.document.write("");
parent.h4.document.close();
parent.send.bird3.focus();
}
function byts_timeline()
{
parent.send.bird8.value = byts_xajh_chat_maxtimeout;
if (byts_xajh_chat_maxtimeout <= 0)
{
top.location.href = "../chat/timeout.aspx";
}
else
{
if (byts_xajh_chat_maxtimeout == 200)
{
byts_showwebicq("【快回来吧】\r快回来和大家说话吧,不然再过 200 秒就要沉入海底了!\r\r(本窗口 10 秒后自动关闭)",parent.byts_xajh_chat_roomautoman,"紧急时刻",false,10,"");
}
setTimeout("byts_timeline()",1000);
}
byts_xajh_chat_maxtimeout --;
}
function byts_webicq(v)
{
var myurl;
if (v == null || v == "")
{
myurl = "../chat/webicq.aspx";
}
else
{
myurl = "../chat/webicq.aspx?name=" + v;
}
xajh = window.open(myurl, "webicq_send", "width=350,height=155,top=100,left=200,status=no,scrollbars=no,resizable=no,fullscreen=no");
xajh.focus();
}
function byts_ask()
{
xajh = window.open("../chat/ask.aspx", "question", "width=350,height=155,top=100,left=200,status=no,scrollbars=no,resizable=no,fullscreen=no");
xajh.focus();
}
function byts_answer(v)
{
xajh = window.open("../chat/answer.aspx?id=" + v, "question", "width=350,height=155,top=100,left=200,status=no,scrollbars=no,resizable=no,fullscreen=no");
xajh.focus();
}
function byts_question()
{
xajh = window.open("../html/question.htm", "question", "width=350,height=155,top=100,left=200,status=no,scrollbars=no,resizable=no,fullscreen=no");
xajh.focus();
}
function byts_displayonline(v)
{
xajh = window.open("../html/chat_online.htm#" + v, "chat_online", "width=550,height=400,top=50,left=100,status=no,scrollbars=no,resizable=no,fullscreen=no");
xajh.focus();
}
function byts_showoptions()
{
var ih = "<select size=\"1\" id=\"bird15\" onchange=\"javascript:parent.h0.byts_quickcommand(this.value)\">" +
"<option value=\"\" style=\"color:#0000FF\" selected>江湖命令</option>" +
"<option value=\"传音|传音主题\">千里传音</option>" +
"<option value=\"使用|物品名称/数量\">使用物品</option>" +
"<option value=\"出示|卡片名称\">出示卡片</option>" +
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -