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

📄 chat.asp

📁 基于ASP开发的聊天室源码
💻 ASP
📖 第 1 页 / 共 5 页
字号:
this.r2.document.writeln("    <td align=\"center\" height=\"25%\" onmouseover=\"o(this)\" onmouseout=\"t(this)\" style=\"border: 1px solid #ECE9D8\" onclick=\"javascript:window.showModelessDialog('savevalue.asp','','dialogHeight: 230px; dialogWidth: 200px; center: Yes; help: No; resizable: No; status: No;');if(parent.canreload==0){setTimeout('parent.r1.location.reload()',500);}parent.l3.document.allsay.saysword.focus();\">积分</td>");
this.r2.document.writeln("    <td align=\"center\" height=\"25%\" onmouseover=\"o(this)\" onmouseout=\"t(this)\" style=\"border: 1px solid #ECE9D8\" onclick=\"javascript:window.open('room.asp','r1');parent.l3.document.allsay.saysword.focus();\">房间</td>");
this.r2.document.writeln("  </tr>");
this.r2.document.writeln("  <tr>");
this.r2.document.writeln("    <td align=\"center\" height=\"25%\" onmouseover=\"o(this)\" onmouseout=\"t(this)\" style=\"border: 1px solid #ECE9D8\" onclick=\"javascript:window.open('selfinfo.asp','r1');parent.l3.document.allsay.saysword.focus();\">状态</td>");
this.r2.document.writeln("    <td align=\"center\" height=\"25%\" onmouseover=\"o(this)\" onmouseout=\"t(this)\" style=\"border: 1px solid #ECE9D8\" onclick=\"javascript:callyou();\">呼叫</td>");
this.r2.document.writeln("    <td align=\"center\" height=\"25%\" onmouseover=\"o(this)\" onmouseout=\"t(this)\" style=\"border: 1px solid #ECE9D8\" onclick=\"javascript:window.open('song.asp','r1');parent.l3.document.allsay.saysword.focus();\">点歌</td>");
this.r2.document.writeln("  </tr>");
this.r2.document.writeln("  <tr>");
this.r2.document.writeln("    <td align=\"center\" height=\"25%\" onmouseover=\"o(this)\" onmouseout=\"t(this)\" style=\"border: 1px solid #ECE9D8\" onclick=\"javascript:window.open('gbook.asp','_blank');\">留言</td>");
this.r2.document.writeln("    <td align=\"center\" height=\"25%\" onmouseover=\"o(this)\" onmouseout=\"t(this)\" style=\"border: 1px solid #ECE9D8\" onclick=\"javascript:if(parent.man_pic.indexOf(parent.mygrade)!=-1){window.open('pic.asp','r1');}else{alert('你的级别被规定不允许贴图。');}parent.l3.document.allsay.saysword.focus();\">帖图</td>");
this.r2.document.writeln("    <td align=\"center\" height=\"25%\" onmouseover=\"o(this)\" onmouseout=\"t(this)\" style=\"border: 1px solid #ECE9D8\" onclick=\"javascript:lib();\">词库</td>");
this.r2.document.writeln("  </tr>");
this.r2.document.writeln("  <tr>");
this.r2.document.writeln("    <td align=\"center\" height=\"25%\" onmouseover=\"o(this)\" onmouseout=\"t(this)\" style=\"border: 1px solid #ECE9D8\" onclick=\"javascript:window.open('man.asp','r1');parent.l3.document.allsay.saysword.focus();\">高级</td>");
this.r2.document.writeln("    <td align=\"center\" height=\"25%\" onmouseover=\"o(this)\" onmouseout=\"t(this)\" style=\"border: 1px solid #ECE9D8\" onclick=\"javascript:window.open('help.asp','r1');parent.l3.document.allsay.saysword.focus();\">帮助</td>");
this.r2.document.writeln("    <td align=\"center\" height=\"25%\" onmouseover=\"o(this)\" onmouseout=\"t(this)\" style=\"border: 1px solid #ECE9D8\" onclick=\"javascript:exitit();\">退出</td>");
this.r2.document.writeln("  </tr>");
this.r2.document.writeln("</table>");
this.r2.document.writeln("</body>");
this.r2.document.writeln("</html>");
this.r2.document.close();
}

function addlist(name,info)
{
if(zzbird_name.indexOf("," + name + ",")==-1)
{
zzbird_name=zzbird_name + "," + name + ",";
online[roomcount]=info;
}
}

function dellist(name)
{
if(zzbird_name.indexOf("," + name + ",")!=-1)
{
for(var rid=0;rid<online.length;rid++)
{
if(online[rid].indexOf(name+"|")==0)
{
 for(var jid=rid;jid<online.length;jid++)
  {
  online[jid]=online[jid+1];
  }
  delete online[online.length-1];
  online.length=online.length-1;
  break;
}
}
zzbird_name=zzbird_name.replace(","+name+",","");
if(name==this.l3.allsay.hename.value)
{mishu("你目前的聊天对象已经不在本聊天室,系统已经自动将聊天对象切换为“大家”。");this.l3.allsay.hename.value="大家";}
}
}

function changeinfo(name,info)
{
if(name==selfname)
{
myinfo=info.split("|");
mygrade="," + myinfo[3] + ","
usetx();
usesay();
}
for(nid in online)
{
if(online[nid].indexOf(name+"|")==0)
{online[nid]=info;}
}
}

function l55()
{
if(this.l3.document.allsay.mishu.checked)
{this.fp1.rows="18,*,18,76";}
else{this.fp1.rows="18,*,0,76";}
}

function usetx()
{
if(man_texiao.indexOf(mygrade)!=-1)
{this.l3.document.allsay.txx.disabled=0;}
else
{this.l3.document.allsay.txx.disabled=1;}
}

function usesay()
{
if(man_say.indexOf(mygrade)!=-1)
{if(this.l3.document.allsay.saysword.value=="你的级别被规定不允许发言。")
{this.l3.document.allsay.saysword.value="";};
this.l3.document.allsay.send.disabled=0;}
else
{this.l3.document.allsay.saysword.value="你的级别被规定不允许发言。";
this.l3.document.allsay.send.disabled=1;}
}

function mishu(mishuword)
{
this.l5.document.write (" <font color='#FF0000'>&gt;&gt;&gt;</font>" + mishuword + "<br>");
this.l5.scroll(0,65534);
}

function openwin(user)
{
window.open("seeinfo.asp?user="+user,"newwindow","height=310,width=290,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no");
}

function openwin1()
{
window.open("seeinfo.asp?user="+userna,"newwindow","height=310,width=290,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no");
}

function opensong()
{
if(userna!=selfname)
 {r1.location.href="song.asp?towho="+userna;}
}

function opencall()
{
 if(userna!=selfname)
  {window.open('callyou.asp?towho='+userna,'callwindow','height=170,width=280,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');}
}

function addfriend()
{
 if(userna!=selfname && friendlist.indexOf(","+userna+",")==-1 && unfriendlist.indexOf(","+userna+",")==-1)
  {window.open('friendadd.asp?name='+userna,'addfriend','height=210,width=310,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');}
}

function delfriend()
{
if(userna!=selfname && friendlist.indexOf(","+userna+",")!=-1)
 {window.open('frienddel.asp?name='+userna,'delfriend','height=210,width=310,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');}
}

function addbadman()
{
if(userna!=selfname && unfriendlist.indexOf(","+userna+",")==-1 && friendlist.indexOf(","+userna+",")==-1)
 {window.open('badmanadd.asp?name='+userna,'addbadman','height=210,width=310,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');}
}

function delbadman()
{
if(userna!=selfname && unfriendlist.indexOf(","+userna+",")!=-1)
 {window.open('badmandel.asp?name='+userna,'delbadman','height=210,width=310,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');}
}

function addfriend2(name)
{
window.open('friendadd.asp?name='+name,'addfriend','height=210,width=310,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');
}

function delfriend2(name)
{
window.open('frienddel.asp?name='+name,'delfriend','height=210,width=310,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');
}

function addbadman2(name)
{
window.open('badmanadd.asp?name='+name,'addbadman','height=210,width=310,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');
}

function delbadman2(name)
{
window.open('badmandel.asp?name='+name,'delbadman','height=210,width=310,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');
}

function changeuser(usern)
{
userna=usern;
}

function songs1()
{
if(mumode==1)
 {songs=0;this.muxia1.rows = "40,*,76";}
else
 {songs=0;this.muxia1.rows = "40,*,0";}
}

function songs2()
{
if(mumode==1)
 {songs=1;this.muxia1.rows = "0,*,76";}
else
 {songs=1;this.muxia1.rows = "0,*,0";}
}

function songs3()
{
if(songs==1)
 {songs1();}
else
 {songs2();}
}

function mantouxian()
{
if(man_selftouxian.indexOf(mygrade)!=-1 && userna==selfname || man_touxian.indexOf(mygrade)!=-1)
{window.open('man_touxian.asp?name='+userna,'man','height=210,width=310,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');}
}

function mantouxian1(manname)
{
window.open('man_touxian.asp?name='+manname,'man','height=210,width=310,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');
}

function mankick()
{
if(man_kick.indexOf(mygrade)!=-1 && userna!=selfname)
{window.open('man_kick.asp?name='+userna,'man','height=210,width=310,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no');}

⌨️ 快捷键说明

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