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

📄 chat.asp

📁 基于ASP开发的聊天室源码
💻 ASP
📖 第 1 页 / 共 5 页
字号:
this.r1.document.writeln("if (document.all&&window.print){");
this.r1.document.writeln("if (menuskin==0)");
this.r1.document.writeln("ie5menu.className=\"skin0\";");
this.r1.document.writeln("else");
this.r1.document.writeln("ie5menu.className=\"skin1\";");
this.r1.document.writeln("}");
this.r1.document.writeln("<\/script>");
this.r1.document.writeln("</body></html>");
this.r1.document.close();}
showlist();}

function showlist()
{
roomcount=online.length;
if(atview==1){
this.showl.document.open();
this.showl.document.writeln("<html><head><title>title</title></head><body><div id='list'>");
for(nid in online)
{
info = online[nid].split("|");
if(info[0]==selfname || showmode=="all" || (showmode=="friendonly" && friendlist.indexOf(","+info[0]+",")!=-1) || (showmode=="nobadman" && unfriendlist.indexOf(","+info[0]+",")==-1))
{
 if(info[2]=="1"){show1=boycolor;show2="帅哥";}
  else{if(info[2]=="2"){show1=girlcolor;show2="美女";}
   else{show1=unknowcolor;show2="保密";}}
 onno=parseInt(info[1])
 if(onno<85){show3="在线";}
  else{show3="暂离";}
 if(info[0]==selfname)
   {show4="<img border='0' src='images/self.gif'>";show5="自己";}
 else{
  if(friendlist.indexOf(","+info[0]+",")!=-1)
   {show4="<img border='0' src='images/friend.gif' height='16' width='14'>";show5="好友";}
  else{if(unfriendlist.indexOf(","+info[0]+",")!=-1)
        {show4="<img border='0' src='images/badman.gif' height='16' width='14'>";show5="坏人";}
   else{show4=" ";show5="普通";}}}
 if(info[5]==""){info_tx="(暂无)";}
   else{info_tx=info[5];}
 this.showl.document.writeln("<a title=\"====================");
 this.showl.document.writeln("昵称 : " + info[0]);
 this.showl.document.writeln("头衔 : " + info_tx);
 this.showl.document.writeln("性别 : " + show2);
 this.showl.document.writeln("状态 : " + show3);
 this.showl.document.writeln("等级 : " + info[3]);
 this.showl.document.writeln("====================");
 this.showl.document.writeln("关系 : " + show5);
 this.showl.document.writeln("====================");
 this.showl.document.writeln("活动时间 :");
 this.showl.document.writeln(info[4]);
 this.showl.document.writeln("====================\" ");
 this.showl.document.write("oncontextmenu=\"javascript:parent.changeuser('" + info[0] + "');parent.hiddendis();showmenuie5();\" ");
 this.showl.document.write("target=\"l3\" href=\"javascript:parent.l3.selectuser('[" + info[0] + "]');\">");
 if(this.l3.document.allsay.ico.checked)
  {this.showl.document.write("<img border=\"0\" src=\"images/ICO/" + info[1] + "-2.gif\" width=\"16\" height=\"16\">");}
 this.showl.document.write(show4);
 this.showl.document.write("<font color=\"" + show1 + "\">" + info[0] + "</font> <font color=\"#CCCCCC\" style=\"font-size: 9pt\">" + info[5] + "</font>");
 this.showl.document.write("</a><br>");
}}
this.showl.document.writeln("</div><font id='nowcount'>" + roomcount + "</font></body></html>");
this.showl.document.close();
this.r1.list.innerHTML=this.showl.list.innerHTML;
this.r1.nowcount.innerHTML=this.showl.nowcount.innerHTML;
}
}

function write()
{
hang=0;
this.l3.document.allsay.hang.value="0";
this.l2.document.open();
this.l2.document.writeln("<html><head><title>对话区</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">");
this.l2.document.writeln("<style type=text/css>.t{color:AAAAAA;font-size:"+parent.font_size+";}body{font-family:\"宋体\";font-size:"+parent.font_size+";line-height:150%;color:<%=zzbird_saytext%>;SCROLLBAR-HIGHLIGHT-COLOR: buttonface;SCROLLBAR-SHADOW-COLOR: buttonface;SCROLLBAR-3DLIGHT-COLOR: buttonhighlight;SCROLLBAR-TRACK-COLOR: #eeeeee;SCROLLBAR-DARKSHADOW-COLOR: buttonshadow}A{text-decoration:none;color:<%=zzbird_saytext%>}A:Hover{text-decoration:underline;color:<%=zzbird_saytext%>}A:visited{color:blue;color:<%=zzbird_saytext%>}</style><\Script>function ctlent(eventobject){if(event.ctrlKey){self.event.returnValue=false}}<\/Script></head>");
this.l2.document.writeln("<body onkeydown=\"ctlent()\" oncontextmenu=\"self.event.returnValue=false;parent.l3.document.allsay.saysword.focus();\" topmargin=\"2\" leftmargin=\"2\" bgcolor=\"<%=zzbird_saybg%>\"<%if zzbird_saybgpic<>"" then%> background=\"<%=zzbird_saybgpic%>\" bgproperties=\"fixed\"<%end if%>>");
this.l2.document.writeln("<font color=red>[<img src='images/welcome.gif'>欢迎]欢迎光临<%=zzbird_chatroomname%>,祝您聊的愉快。</font><br>");
this.l4.document.open();
this.l4.document.writeln("<html><head><title>个人区</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">");
this.l4.document.writeln("<style type=text/css>.t{color:AAAAAA;font-size:"+parent.font_size+";}body{font-family:\"宋体\";font-size:"+parent.font_size+";line-height:150%;color:<%=zzbird_saytext%>;SCROLLBAR-HIGHLIGHT-COLOR: buttonface;SCROLLBAR-SHADOW-COLOR: buttonface;SCROLLBAR-3DLIGHT-COLOR: buttonhighlight;SCROLLBAR-TRACK-COLOR: #eeeeee;SCROLLBAR-DARKSHADOW-COLOR: buttonshadow}A{text-decoration:none;color:<%=zzbird_saytext%>}A:Hover{text-decoration:underline;color:<%=zzbird_saytext%>}A:visited{color:blue;color:<%=zzbird_saytext%>}</style><\Script>function ctlent(eventobject){if(event.ctrlKey){self.event.returnValue=false}}<\/Script></head>");
this.l4.document.writeln("<body onkeydown=\"ctlent()\" oncontextmenu=\"self.event.returnValue=false;parent.l3.document.allsay.saysword.focus();\" topmargin=\"2\" leftmargin=\"2\" bgcolor=\"<%=zzbird_saybg%>\"<%if zzbird_saybgpic<>"" then%> background=\"<%=zzbird_saybgpic%>\" bgproperties=\"fixed\"<%end if%>>");
this.l4.document.writeln("<font color=red>[<img src='images/welcome.gif'>提示]欢迎光临<%=zzbird_chatroomname%>,此处只显示和你有关的信息。</font><br>");
this.l5.document.open();
this.l5.document.writeln("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><title></title><\Script>function ctlent(eventobject){if(event.ctrlKey){self.event.returnValue=false}}<\/Script>");
this.l5.document.writeln("</head><body onkeydown=\"ctlent()\" topmargin=\"0\" leftmargin=\"0\" bgcolor=\"<%=zzbird_saybg%>\" text=\"<%=zzbird_saytext%>\" style=\"font-size: 9.5pt\" <%if zzbird_saybgpic<>"" then%> background=\"<%=zzbird_saybgpic%>\" bgproperties=\"fixed\"<%end if%>><font color=\"#FF0000\">[ 欢迎 >>> ]</font> 欢迎使用聊天小助手,我会及时提醒您一些注意事项和你的好友的情况。<br>");
this.l3.document.allsay.saysword.focus();}

function hiddendis()
{
if(bver<5.5){
if(userna==selfname)
 {this.r1.m1.innerHTML="<font style='color:#999999'>发送点歌</font>";
 this.r1.m2.innerHTML="<font style='color:#999999'>呼叫该人</font>";
 this.r1.m3.innerHTML="<font style='color:#999999'>加为好友</font>";
 this.r1.m4.innerHTML="<font style='color:#999999'>解除好友</font>";
 this.r1.m5.innerHTML="<font style='color:#999999'>列为坏人</font>";
 this.r1.m6.innerHTML="<font style='color:#999999'>解除坏人</font>";
 if(man_selftouxian.indexOf(mygrade)!=-1)
  {this.r1.m7.innerHTML="管理头衔";}
  else{this.r1.m7.innerHTML="<font style='color:#999999'>管理头衔</font>";}
 this.r1.m8.innerHTML="<font style='color:#999999'>踢出该人</font>";
 this.r1.m9.innerHTML="<font style='color:#999999'>封锁IP</font>";
 this.r1.m10.innerHTML="<font style='color:#999999'>轰炸该人</font>";
 this.r1.m11.innerHTML="详细资料";}
else
 {
 this.r1.m1.innerHTML="发送点歌";
 this.r1.m2.innerHTML="呼叫该人";
 this.r1.m3.innerHTML="加为好友";
 this.r1.m4.innerHTML="解除好友";
 this.r1.m5.innerHTML="列为坏人";
 this.r1.m6.innerHTML="解除坏人";
 this.r1.m7.innerHTML="管理头衔";
 this.r1.m8.innerHTML="踢出该人";
 this.r1.m9.innerHTML="封锁IP";
 this.r1.m10.innerHTML="轰炸该人";
 this.r1.m11.innerHTML="详细资料";
 if(friendlist.indexOf(","+userna+",")!=-1 || unfriendlist.indexOf(","+userna+",")!=-1)
  {this.r1.m3.innerHTML="<font style='color:#999999'>"+this.r1.m3.innerHTML+"</font>";
  this.r1.m5.innerHTML="<font style='color:#999999'>"+this.r1.m5.innerHTML+"</font>";}
 if(friendlist.indexOf(","+userna+",")==-1)
  {this.r1.m4.innerHTML="<font style='color:#999999'>"+this.r1.m4.innerHTML+"</font>";}
 if(unfriendlist.indexOf(","+userna+",")==-1)
  {this.r1.m6.innerHTML="<font style='color:#999999'>"+this.r1.m6.innerHTML+"</font>";}
 if(man_touxian.indexOf(mygrade)==-1)
  {this.r1.m7.innerHTML="<font style='color:#999999'>"+this.r1.m7.innerHTML+"</font>";}
 if(man_kick.indexOf(mygrade)==-1)
  {this.r1.m8.innerHTML="<font style='color:#999999'>"+this.r1.m8.innerHTML+"</font>";}
 if(man_ip.indexOf(mygrade)==-1)
  {this.r1.m9.innerHTML="<font style='color:#999999'>"+this.r1.m9.innerHTML+"</font>";}
 if(man_hongzha.indexOf(mygrade)==-1)
  {this.r1.m10.innerHTML="<font style='color:#999999'>"+this.r1.m10.innerHTML+"</font>";}

}}
else{
if(userna==selfname)
 {this.r1.m1.disabled=1;
 this.r1.m2.disabled=1;
 this.r1.m3.disabled=1;
 this.r1.m4.disabled=1;
 this.r1.m5.disabled=1;
 this.r1.m6.disabled=1;
 if(man_selftouxian.indexOf(mygrade)!=-1)
 {this.r1.m7.disabled=0;}
 else{this.r1.m7.disabled=1;}
 this.r1.m8.disabled=1;
 this.r1.m9.disabled=1;
 this.r1.m10.disabled=1;
 this.r1.m11.disabled=0;}
else
 {
 this.r1.m1.disabled=0;
 this.r1.m2.disabled=0;
 this.r1.m3.disabled=0;
 this.r1.m4.disabled=0;
 this.r1.m5.disabled=0;
 this.r1.m6.disabled=0;
 this.r1.m7.disabled=0;
 this.r1.m8.disabled=0;
 this.r1.m9.disabled=0;
 this.r1.m10.disabled=0;
 this.r1.m11.disabled=0;
 if(friendlist.indexOf(","+userna+",")!=-1 || unfriendlist.indexOf(","+userna+",")!=-1)
  {this.r1.m3.disabled=1;
  this.r1.m5.disabled=1;}
 if(friendlist.indexOf(","+userna+",")==-1)
  {this.r1.m4.disabled=1;}
 if(unfriendlist.indexOf(","+userna+",")==-1)
  {this.r1.m6.disabled=1;}
 if(man_touxian.indexOf(mygrade)==-1)
  {this.r1.m7.disabled=1;}
 if(man_kick.indexOf(mygrade)==-1)
  {this.r1.m8.disabled=1;}
 if(man_ip.indexOf(mygrade)==-1)
  {this.r1.m9.disabled=1;}
 if(man_hongzha.indexOf(mygrade)==-1)
  {this.r1.m10.disabled=1;}

}}
}

function r22()
{
this.r2.document.open();
this.r2.document.writeln("<html><head><meta http-equiv=\"Content-Language\" content=\"zh-cn\">");
this.r2.document.writeln("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">");
this.r2.document.writeln("<title>菜单</title><\script language=\"javascript\" type=\"text/javascript\">");
this.r2.document.writeln("function o(e)");
this.r2.document.writeln("{");
this.r2.document.writeln("e.bgColor = \"#C1D2EE\";");
this.r2.document.writeln("e.style.borderColor = \"#316AC5\";");
this.r2.document.writeln("}");
this.r2.document.writeln("function t(e)");
this.r2.document.writeln("{");
this.r2.document.writeln("e.bgColor = \"\";");
this.r2.document.writeln("e.style.borderColor = \"#ECE9D8\";");
this.r2.document.writeln("}");
this.r2.document.writeln("function ctlent(eventobject)");
this.r2.document.writeln("{");
this.r2.document.writeln("if(event.ctrlKey)");
this.r2.document.writeln("{self.event.returnValue=false}");
this.r2.document.writeln("}");
this.r2.document.writeln("var gpmode=1;");
this.r2.document.writeln("function exitit()");
this.r2.document.writeln("{");
this.r2.document.writeln("if(confirm(\"确认:你真的要退出“"+chatroomname+"”?\"))");
this.r2.document.writeln("{parent.l.location.href=\"about:blank\";top.location.href=\"exit.asp\";}");
this.r2.document.writeln("else{parent.l3.document.allsay.saysword.focus();}}");
this.r2.document.writeln("function callyou()");
this.r2.document.writeln("{window.open('callyou.asp',\"\",\"height=170,width=280,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no\");}");
this.r2.document.writeln("function lib()");
this.r2.document.writeln("{window.open('lib.asp',\"lib\",\"height=320,width=620,left=160,top=5,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no\");}");
this.r2.document.writeln("<\/script><style>body {cursor:default}table{font-size: 9pt}</style></head>");
this.r2.document.writeln("<body bgcolor=\"#D5DAF4\" topmargin=\"1\" leftmargin=\"1\">");
this.r2.document.writeln("<table border=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\" bgcolor=\"#ECE9D8\">");
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=\"location.href='javascript:parent.atview=1;parent.showplace();parent.l3.document.allsay.saysword.focus();'\">名单</td>");

⌨️ 快捷键说明

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