📄 frame1.htm
字号:
<HTML>
<HEAD>
<TITLE><!--$RoomName--> Powered by MeChat Server</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE=javascript>
<!-- /*正式运行后可将所有注释删除,以加快聊天室运行速度*/
/*初始变量,允许修改*/
var bTimer = true ; //bTimer = false 用户进入退出时刷新用户列表(可能引起刷新过频,导致无法选取用户名)
//bTimer = true 定时刷新用户列表(适用于用户进入退出流量大,用户列表刷新过快的网站使用)
var box_func = false; /* 2002/2/19 增加包厢功能开/关判断变量*/
var nTimer = 5 ; //定时刷新用户列表的时间的秒数
/*系统变量,请勿修改*/
var list, count,youself,timerID=null,timerRunning=false;
var everyone = "所有人" ;
function v1()
{ // 用户在线列表窗口,请到userlist.htm文件内修改。
if((this.user==null) || (this.user.document==null) )
{
//sleep(10);
setTimeout("v1()", 2000);
return;
}
this.user.document.open();
<!--$USERLIST_FILE-->
this.user.document.close();
if(bTimer){timerRunning=true;timerID=setTimeout("start()",nTimer*1000);}
}
/*客户区显示模块,允许修改*/
function v2(str1,str2)
{ // 即时信息显示窗口
this.ad.document.open();
this.ad.document.writeln("<html><head>");
this.ad.document.writeln("<style type='text/css'>");
this.ad.document.writeln("<!--");
this.ad.document.writeln("body { font-family: '宋体'; font-size: 10.5pt}");
this.ad.document.writeln("a:visited { color: #0000FF; text-decoration: none}");
this.ad.document.writeln("a:link { color: #0000FF; text-decoration: none}");
this.ad.document.writeln("a:hover { color: #FF0000}");
this.ad.document.writeln("-->");
this.ad.document.writeln("</style>");
this.ad.document.writeln("</head><body topmargin=4 bgcolor=#DDDDFF><center>");
this.ad.document.writeln("<font color=red>即时信息</font>: <a href="+str2+" target='_blank'>"+str1+"</a> <font size=2><font color=red>MeChat <!--$MeChatVersion--></font>");
this.ad.document.writeln('</body></html>');
this.ad.document.close();
}
function cs(name)
{ // // 选取用户名称模块
if(this.form.document==null) return;
if(name==youself){this.form.document.inputform.msg.focus();return;}
if(name==everyone)
{ this.form.document.inputform.talkto.value=everyone;
this.form.document.inputform.talkto2.value=everyone;
this.form.document.inputform.msg.focus(); return;
} // list[i+1] = NickName
for(var i=0;i<list.length;i+=7) // list[i+2] = UserName
{ if(list[i+2]==name) // list[i+3] = Sex //list[i+3] audio state
{ this.form.document.inputform.talkto.value=list[i+1];
this.form.document.inputform.talkto2.value=list[i+2];
this.form.document.inputform.msg.focus();
if(audio!=null && audio.MeChatAudio!=null && audio.MeChatAudio.UserNameDst!=null )
{audio.MeChatAudio.UserNameDst=list[i+2];}
if(video!=null && video.MeChatVideo!=null && video.MeChatVideo.UserNameDst!=null )
{video.MeChatVideo.UserNameDst=list[i+2];}
return;
}
}
alert('此用户已离线或已改了昵称。');
this.form.document.inputform.msg.focus();
}
function gmwin() ////改名窗口
{
var strUrl = "gm.htm?UserName=<!--$UserName-->&Password=<!--$Password-->&r=" + Math.random();
this.form.document.inputform.msg.focus();
window.open(strUrl,"gmwin",
"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=90");
}
function modify()////对于guest注册个人资料,对于注册用户修改个人资料
{
var strUrl = "<!--$RegistUrl-->?UserName=<!--$UserName-->&Alias=<!--$Alias-->&RoomID=<!--$RoomID-->&TempPassword=<!--$TempPassword-->&r=" + Math.random();
this.form.document.inputform.msg.focus();
window.open(strUrl,"modify",
"toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=yes,width=270,height=500");
}
/*以下为系统函数,不推荐修改*/
function add(str0,str1,str2,str3,str4) //str0=icon, str1 = nick, str2 = user, str3 = sex ,str4 =audiostatus
{ var l=list.length;for(var i=0;i<list.length;i+=7)if(list[i+2]==str2)return;
list[l+0]=str0;list[l+1]=str1;list[l+2]=str2;list[l+3]=str3;list[l+4]=str4;count++;if(!bTimer)start();
}
function del(str)
{
if(list==null)
{return;}
for(var i=0;i<list.length;i+=7)
if(list[i+2]==str)
{ if(this.form.document.inputform.talkto2.value==str) this.cs(everyone);
delete list[i];delete list[i+1];delete list[i+2]; delete list[i+3];
count--; if(!bTimer) start(); return ;
}
}
function stop(){if(timerRunning)clearTimeout(timerID);timerRunning=false;}
function start(){if(bTimer)stop();v1();}
function gm(name,nk)
{ for(var i=0;i<list.length;i+=7)
if(list[i+2]==name)
{ list[i+1]=nk;
if(this.form.document.inputform.talkto2.value == name)this.form.document.inputform.talkto.value = nk ;
start();
}
}
//-->
</SCRIPT>
</HEAD>
<!--调整FRAME大小,请修改FRAME1.HTM和FRAME2.HTM-->
<!--此文件强烈建议用文本编辑器修改-->
<FRAMESET cols="*,152" >
<FRAMESET rows="2,*,100,0" cols="*" framespacing=0>
<FRAME name="banner" scrolling=NO src="about:blank">
<FRAMESET name="split" rows="*,0" cols="*" border=0 framespacing=0 frameborder=YES>
<FRAME name="body" src="body.htm?UserName=<!--$UserName-->&Alias=<!--$Alias-->&TempPassword=<!--$TempPassword-->&RoomID=<!--$RoomID-->&Sex=<!--$Sex-->">
<FRAME name="body2" src="about:blank">
</FRAMESET>
<FRAMESET rows="0,100,0" cols="*" border=0 framespacing=0 frameborder=NO>
<FRAME name="ad" scrolling=NO src="about:blank">
<FRAME name="form" src="chatform.htm?UserName=<!--$UserName-->&Alias=<!--$Alias-->&TempPassword=<!--$TempPassword-->&RoomID=<!--$RoomID-->&RoomName=<!--$RoomName-->">
<FRAME name="bl" src="about:blank">
</FRAMESET>
<FRAME name="h" src="about:blank">
</FRAMESET>
<!--VideoAudioFrameRows 由MeChat.ini中的AudioFrameRows,和VideFrameRows指定-->
<FRAMESET rows="*<!--$VideoAudioFrameRows-->" cols="*" framespacing=0>
<FRAME name="user" marginwidth="0" marginheight="0" src="about:blank">
<!--$NotSupportVideoCommentLeft-->
<FRAME name="video" scrolling="no" marginwidth="0" marginheight="0" src="/video/VideoControl2.htm?UserName=<!--$UserName-->&Alias=<!--$Alias-->&TempPassword=<!--$TempPassword-->">
<!--$NotSupportVideoCommentRight-->
<!--$NotSupportAudioCommentLeft-->
<FRAME name="audio" scrolling="no" marginwidth="0" marginheight="0" src="/audio/AudioControl2.htm?UserName=<!--$UserName-->&Alias=<!--$Alias-->&TempPassword=<!--$TempPassword-->">
<!--$NotSupportAudioCommentRight-->
</FRAMESET>
</FRAMESET>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -