采用行写方式的聊天程序(之三)
时间:2021-07-01 10:21:17
帮助过:9人阅读
ltsayno.php
该程序为系统的核心,处理所关联的所有函数信息
发言区
");
parent.f1.document.writeln("");
parent.f1.document.writeln("
欢迎光临PHP无刷新功能聊天室!
");
parent.tforlt4.location.href="lt4.php";
document.fyq.saystemp.focus();
}
function sw(list){
document.fyq.towho.options[0].value=list;
document.fyq.towho.options[0].text=list;
document.fyq.saystemp.focus();
}
function sw11(username){
var usna;
usna=username.substring(1,username.length-1);
document.fyq.towho.options[0].value=usna;
document.fyq.towho.options[0].text=usna;
document.fyq.saystemp.focus();
return;
}
function w(un,sa,tn,dt){
var show;
show="【"+tn+" 发言】";
show=show+"" + un + ":" + sa + ""
show=show + " (" + dt + ")
";
parent.f1.document.writeln(show);
}
function nw(zt,un,tw,sa){
parent.f2.document.fyq.addsign.options[0].selected=true;
var show="";
var sw_un=un.indexOf(">");
var yun=un.substring(sw_un+1,un.length-7);
var name_self="";
if (zt==0){
if (name_self!=un && name_self!=tw){
show="" + un + "对"+"" + tw + "说:"+sa+"
";
parent.f1.document.writeln(show);
}else{
if(name_self==un){
show="〖"+un+"〗对";
show=show+"" + tw + "说:" + sa + "
";
parent.f1.document.writeln(show);
}else{
show="" + un + "对";
show=show+"〖"+tw+"〗说:" + sa + "
";
parent.f1.document.writeln(show);
}
}
}
}
function change_color(){
var change_color=document.fyq.sayscolor.options[document.fyq.sayscolor.selectedIndex].value;
document.fyq.saystemp.style.color=change_color;
document.fyq.saystemp.focus();
}