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

📄 chat.asp

📁 基于ASP开发的聊天室源码
💻 ASP
📖 第 1 页 / 共 5 页
字号:
  {mishu("你的好友 <font color='#0000FF'>"+ww1+"</font> (在房间“<font color='#008000'>"+ww5+"</font>”)已经掉线。");}
if(ww3=="drop" && friendlist.indexOf(","+ww1+",")!=-1)
  {mishu("你的好友 <font color='#0000FF'>"+ww1+"</font> (在房间“<font color='#008000'>"+ww5+"</font>”)已经沉入海底。");}
}

function clsnow()
{
 hang=hang+1;
 this.l3.allsay.hang.value=hang;
 if(hang>clsmax && clsok==0)
  {if(confirm("你的屏幕显示的发言行数已经超过了"+clsmax+",考虑到您电脑的性能问题 ,是否清屏?点击“确定”清屏,点击“取消”以后不再出现此提示。")){write();}else{clsok=1;}}
}

function recall(from,sj,nei,fromwhere,dis,autoclose,system)
{
recall_win=window.open("","","height=170,width=280,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no");
recall_win.document.open();
recall_win.document.writeln("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><title>");
if(system=="ok")
{recall_win.document.writeln("系统消息")}
else
{recall_win.document.writeln("收到聊友呼叫");}
recall_win.document.writeln("</title><style><!--a:active{font-family:'宋体'; font-size: 10pt }a:link{font-family:'宋体'; font-size: 10pt }a:visited{font-family:'宋体'; font-size: 10pt }a{font-family:'宋体'; font-size: 10pt }body{font-family:'宋体'; font-size: 10pt}table{font-family:'宋体'; font-size: 10pt }--></style><bgsound src=\"other/call.wav\" loop=\"1\"><\Script Language='JavaScript'>function testhj(){if(opener.l3.document.allsay.hjj.checked){test.value='设置为不接受呼叫';}else{test.value='设置为要接受呼叫';}}<\/Script></head>");
recall_win.document.writeln("<body bgcolor=\"buttonface\" style=\"border: 2px double buttonface\" topmargin=\"2\" leftmargin=\"2\" onload=\"testhj();\">");
recall_win.document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" height=\"150\"><tr><td width=\"100%\" height=\"6\"><font color=\"#000080\"><img border=\"0\" src=\"images/hot.gif\">【<b>");
if(system=="ok")
{recall_win.document.write("收到系统消息");}
else
{recall_win.document.write("收到聊友的呼叫");}
recall_win.document.writeln("</b>】</font></td></tr><tr><td width=\"100%\" height=\"100\" valign=\"top\">呼叫者:<a href=\"javascript:opener.openwin('" + from + "')\"><font color='#D90000'>" + from + "</font></a> - <font style='font-size:9pt' color='#008000'>(" + fromwhere + ")</font><br>呼叫时间:<font color='#008000'>" + sj + "</font><br>");
recall_win.document.writeln("<textarea id=\"w\" name=\"w\" readonly style=\"width: 270; height:90;font-size:10pt;border:1px double #000000;background-color: buttonface;\">" + unescape(nei) + "</textarea></td></tr>");
recall_win.document.writeln("<tr><td width=\"100%\" height=\"10\" align=\"center\"><input name=\"zzbird\" ");
if(dis=="yes"){recall_win.document.writeln("disabled");}
recall_win.document.writeln(" id=\"zzbird\" type=\"button\" value=\"回 复\" style='font-size:10pt;background-color:buttonface;color:000000;border: 1 double' onclick=\"javascript:location.href='callyou.asp?towho=" + from + "';\"><input type=\"button\" value=\"关 闭\" style='font-size:10pt;background-color:buttonface;color:000000;border: 1 double' onclick=\"javascript:window.close();\"><input id=\"test\" type=\"button\" ");
if(system=="ok")
recall_win.document.writeln(" disabled ")
recall_win.document.writeln("value=\"\" style='font-size:10pt;background-color:buttonface;color:000000;border: 1 double' onclick=\"javascript:opener.l3.document.allsay.hjj.click();testhj();\"></td></tr></table>");
if(autoclose!=0){recall_win.document.writeln("<\script language=javascript>setTimeout('window.close()'," + autoclose + ")<\/script>");}
if(dis!="yes"){recall_win.document.writeln("<\script language=\"javascript\">this.zzbird.focus();<\/script>");}
recall_win.document.writeln("</body></html>");
recall_win.document.close();
}

function resong(from,zj,name,url,whenn)
{
resong_win=window.open("","","height=135,width=240,left=150,top=60,resizable=no,scrollbars=auto,status=no,toolbar=no,menubar=no,location=no")
resong_win.document.open();
resong_win.document.writeln("<html><head>");
resong_win.document.writeln("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><title>收到点歌</title><style><!--a:active{font-family:'宋体'; font-size: 10pt }a:link{font-family:'宋体'; font-size: 10pt }a:visited{font-family:'宋体'; font-size: 10pt }a{font-family:'宋体'; font-size: 10pt }body{font-family:'宋体'; font-size: 10pt }table{font-family:'宋体'; font-size: 10pt }--></style><bgsound src=\"other/call.wav\" loop=\"1\"></head>");
resong_win.document.writeln("<body bgcolor=\"buttonface\" style=\"border: 2px double buttonface\" topmargin=\"2\" leftmargin=\"2\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" height=\"100\">");
resong_win.document.writeln("<tr><td width=\"100%\" height=\"13\"><font color=\"#000080\"><img border=\"0\" src=\"images/hot.gif\">【<b>收到聊友的点歌</b>】</font></td></tr>");
resong_win.document.writeln("<tr><td width=\"100%\" height=\"70\"><iframe name=\"ii\" height=\"80\" width=\"230\" src=\"about:blank\">浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td></tr>");
resong_win.document.writeln("<tr><td width=\"100%\" height=\"18\" align=\"center\"><input type=\"button\" id=\"t\" name=\"t\" value=\" 收 听 \" onclick=\"javascript:opener.parent.songs1();opener.parent.song.location.href='playsong.asp?how=self&songurl=" + escape(url) + "&myloop=false&who=my';window.close();\"> <input type=\"button\" value=\" 关 闭 \" onclick=\"javascript:window.close();\"></td></tr></table>");
resong_win.document.writeln("<\script language='javascript'>");
resong_win.document.write("this.ii.document.write(\"<html><head><meta http-equiv='Content-Language' content='zh-cn'><meta name='GENERATOR' content='Microsoft FrontPage 5.0'><meta name='ProgId' content='FrontPage.Editor.Document'><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>title</title></head><body bgcolor='buttonface' style='font-size:10pt' topmargin='2' leftmargin='2'>发送者:<font color='#D90000'>");
resong_win.document.write(from + "</font><br>歌曲名:<font color='#008000'>");
if(name==""){resong_win.document.write("(听了就知道了)");}
else{resong_win.document.write(name.substring(0,name.length-4));}
resong_win.document.write("</font><br>专辑名:<font color='#008000'>");
if(zj!=""){resong_win.document.write(zj);}
else{resong_win.document.write("(我也不太清楚:()");}
resong_win.document.write("</font><br>音乐文件格式:<font color='#008000'>");
resong_win.document.write(url.substring(url.length-4,url.length));
resong_win.document.write("</font><br>文件地址:<font color='#008000'>");
resong_win.document.write(url);
resong_win.document.write("</font><br>点播时间:<font color='#008000'>");
resong_win.document.write(whenn);
resong_win.document.writeln("</font></body></html>\");");
resong_win.document.writeln("this.t.focus();");
resong_win.document.writeln("<\/script>");
resong_win.document.writeln("</body></html>");
resong_win.document.close();
}

function playsong(url){
this.song.document.open();
this.song.document.write("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><title>title</title><\script>function ctlent(eventobject){if(event.ctrlKey){self.event.returnValue=false}}<\/script></head><body onkeydown=\"ctlent()\" topmargin=\"0\" leftmargin=\"0\">");
this.song.document.write("<object classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" id=\"MediaPlayer1\" width=\"160\" height=\"40\" border=\"0\">");
this.song.document.write("<param name=\"AudioStream\" value=\"-1\"><param name=\"AutoSize\" value=\"0\"><param name=\"AutoStart\" value=\"-1\"><param name=\"AnimationAtStart\" value=\"-1\">");
this.song.document.write("<param name=\"AllowScan\" value=\"-1\"><param name=\"AllowChangeDisplaySize\" value=\"-1\"><param name=\"AutoRewind\" value=\"0\"><param name=\"Balance\" value=\"0\">");
this.song.document.write("<param name=\"BaseURL\" value><param name=\"BufferingTime\" value=\"5\"><param name=\"CaptioningID\" value><param name=\"ClickToPlay\" value=\"-1\">");
this.song.document.write("<param name=\"CursorType\" value=\"0\"><param name=\"CurrentPosition\" value=\"-1\"><param name=\"CurrentMarker\" value=\"0\"><param name=\"DefaultFrame\" value>");
this.song.document.write("<param name=\"DisplayBackColor\" value=\"0\"><param name=\"DisplayForeColor\" value=\"16777215\"><param name=\"DisplayMode\" value=\"0\"><param name=\"DisplaySize\" value=\"-1\">");
this.song.document.write("<param name=\"Enabled\" value=\"-1\"><param name=\"EnableContextMenu\" value=\"-1\"><param name=\"EnablePositionControls\" value=\"-1\"><param name=\"EnableFullScreenControls\" value=\"0\">");
this.song.document.write("<param name=\"EnableTracker\" value=\"-1\"><param name=\"FileName\" value=\"" + url + "\"><param name=\"InvokeURLs\" value=\"-1\"><param name=\"Language\" value=\"-1\">");
this.song.document.write("<param name=\"Mute\" value=\"0\"><param name=\"PlayCount\" value=\"1\"><param name=\"PreviewMode\" value=\"0\"><param name=\"Rate\" value=\"1\"><param name=\"SAMILang\" value>");
this.song.document.write("<param name=\"SAMIStyle\" value><param name=\"SAMIFileName\" value><param name=\"SelectionStart\" value=\"-1\"><param name=\"SelectionEnd\" value=\"-1\">");
this.song.document.write("<param name=\"SendOpenStateChangeEvents\" value=\"-1\"><param name=\"SendWarningEvents\" value=\"-1\"><param name=\"SendErrorEvents\" value=\"-1\"><param name=\"SendKeyboardEvents\" value=\"0\">");
this.song.document.write("<param name=\"SendMouseClickEvents\" value=\"0\"><param name=\"SendMouseMoveEvents\" value=\"0\"><param name=\"SendPlayStateChangeEvents\" value=\"-1\"><param name=\"ShowCaptioning\" value=\"0\">");
this.song.document.write("<param name=\"ShowControls\" value=\"-1\"><param name=\"ShowAudioControls\" value=\"-1\"><param name=\"ShowDisplay\" value=\"0\"><param name=\"ShowGotoBar\" value=\"0\">");
this.song.document.write("<param name=\"ShowPositionControls\" value=\"0\"><param name=\"ShowStatusBar\" value=\"0\"><param name=\"ShowTracker\" value=\"-1\"><param name=\"TransparentAtStart\" value=\"0\">");
this.song.document.write("<param name=\"VideoBorderWidth\" value=\"0\"><param name=\"VideoBorderColor\" value=\"0\"><param name=\"VideoBorder3D\" value=\"0\"><param name=\"Volume\" value=\"0\">");
this.song.document.write("<param name=\"WindowlessVideo\" value=\"0\"></object>");
this.song.document.write("</body></html>");
this.song.document.close();}

function showfriendlist() {
window.open('friendlist.asp','friendlist','toolbar=no,scrollbars=yes,resizable=yes,width=150,height='+(screen.availHeight-30)+',top=0,left='+(screen.availWidth-160));
}

function showbadmanlist() {
window.open('badmanlist.asp','badmanlist','toolbar=no,scrollbars=yes,resizable=yes,width=150,height='+(screen.availHeight-30)+',top=0,left='+(screen.availWidth-160));
}

function ctlent(eventobject)
{if(event.ctrlKey)
{self.event.returnValue=false}
}

function runnosay(){
this.l3.document.allsay.howtime.value=this.l3.document.allsay.howtime.value-1;
afcv=this.l3.document.allsay.howtime.value;
if(afcv <= 300 && afcv > 0 && Math.floor(afcv/100)*100 == afcv){recall(automan,"现在","快回来和大家说话吧!不然再过 " + afcv + " 秒你就要沉入海底了! -----此消息由陪聊机器人发送,无须回复!(八秒钟后自动关闭)",nowroom,"yes",8000,"ok")}
if(afcv <= 0){top.location.href='drop.asp';}
setTimeout('runnosay()',1000);}

function autoreload()
{
setTimeout("this.l.location.reload();autoreload();",<%=zzbird_reloadtime%>000)
}

function updatenamelist()
{
this.r1.list.innerHTML="<br><br><font style='font-size:10pt;font-weight:bold;'>正在重新统计名单...</font>"
this.reloadlist.location.href='updatenamelist.asp';
}

function sendsays()
{
words = this.l3.document.allsay.newsays.value;
hename = escape(this.l3.document.allsay.hename.value);
fs = escape(this.l3.document.allsay.fs.value);
namecolor = escape(this.l3.document.allsay.namecolor.value);
saycolor = escape(this.l3.document.allsay.saycolor.value);
bq = escape(this.l3.document.allsay.bq.value);
tx = escape(this.l3.document.allsay.tx.value);
while(words.indexOf("+") != -1)
{words=words.replace("+","([{zzbird{(]")}
words = escape(words);
this.r.location.href="r.asp?words=" + words + "&hename=" + hename + "&fs=" + fs + "&namecolor=" + namecolor + "&saycolor=" + saycolor + "&bq=" + bq + "&tx=" + tx + "&timev=" + parent.timev ;
}

function testpoll()
{
var pollno="<%=ubound(Application("pollinfo"),1)%>";
if(pollno!="0"){this.l3.poll.innerHTML="<a style='color:#FFFF00' href='javascript:parent.openpoll();'><b>" + pollno + "</b>个投票在进行</a>";}
else{this.l3.poll.innerHTML="没有投票在进行";}
}

function gonggao()
{
var radio="<%=zzbird_gonggao%>";
if(radio!=""){if(fpmode==1)
{this.l4.document.write("<font color='red'>[站长公告]</font>" + unescape(radio) + "<br>")}
else
{this.l2.document.write("<font color='red'>[站长公告]</font>" + unescape(radio) + "<br>")}
}if(selfname=="<%=zzbird_master%>")
{if(fpmode==1)
{this.l4.document.write("<font color='red'>[室主登陆]</font>你的级别已经暂时被提升至最高级别,但不会改变你数据库中的实际级别。<br>")}
else
{this.l2.document.write("<font color='red'>[室主登陆]</font>你的级别已经暂时被提升至最高级别,但不会改变你数据库中的实际级别。<br>")}
}}

function openpoll()
{
window.open("poll.asp","poll","height=305,width=700,left=50,top=60,toolbar=no,scrollbars=yes,resizable=yes")
}

function stopError(){
if(confirm("JavaScript脚本发生错误,可能是服务器重新启动或程序错误。点击确定刷新本页面再试(推荐),点击取消忽略错误继续运行(不推荐)。如果确认是程序错误,请联系程序作者 zzbird@163.com 以及时修正。"))
{top.location.href="chat.asp?fp=1";}
return true;}
window.onerror=stopError;
</script>
<script Language="JavaScript" src="other/words.js"></Script>
</head>
<frameset cols="0,0,*,160,0,0" framespacing="0" border="0" frameborder="0" name="zuo" onkeydown="ctlent()">
<frame name="giveyou" src="about:blank">
<frame name="l" src="about:blank">
<frameset rows="18,*,18,76" name="fp1">
<frame name="l1" src="about:blank" scrolling="no" noresize>
<frameset name="fpp" rows="*,<%
If Trim(Request("fp")) = "1" Then
	Response.Write "*"
Else
	Response.Write "0"
End If
%>" cols="*">
<frame name="l2" src="about:blank"  marginheight='1' marginwidth='1' style="border-style: inset; border-width: 1">
<frame name="l4" src="about:blank"  marginheight='1' marginwidth='1' style="border-style: inset; border-width: 1">
</frameset>
<frame name="l5" src="about:blank" noresize  marginheight='1' marginwidth='1' style="border-style: inset; border-width: 1">
<frame name="l3" src="l3.asp?fp=<%=Request("fp")%>" scrolling="auto" noresize>
</frameset>
<frameset rows="0,*,76,0,0" name="muxia1">
<frame name="song" src="about:blank" scrolling="no" noresize>
<frame name="r1" src="about:blank" scrolling="auto" noresize>
<frame name="r2" src="about:blank" scrolling="no" noresize>
<frame name="autosay" src="about:blank" scrolling="no" noresize>
<frame name="showl" src="about:blank" scrolling="no" noresize>
</frameset>
<frame name="r" src="about:blank">
<frame name="reloadlist" src="about:blank">
<noframes>
<body>
<p>
此网页使用了框架,但您的浏览器不支持框架。
</p>
</body>
</noframes>
</frameset>
</html>

⌨️ 快捷键说明

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