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

📄 tl.htm

📁 聊天功能的实现
💻 HTM
字号:
<html>
<head>
<script Language="JavaScript">
var autos=true
var list=true
var Ulist,Slist,Flist,Room

function auto(){
	autos=top.document.f1.C1.checked
	return false;
}

function getCount(){
var c=1
if(Ulist==null) return 0
for(var i=0;i<Ulist.length;i++){
	if(Ulist[i]!=null) c++
}
if(c>0)c--
return c
}
function writelist(){
var s=""
if(online.document==null) return
online.document.open();
<!online!>
s=s.replace(/<!usercount!>/g,getCount());
online.document.writeln(s);
online.document.close();
}

function add(sName,sSex,sFace){
var i,i1=0
for(i=0;i<Ulist.length;i++){
	if(Ulist[i]==sName) return;
	if(Ulist[i]==null) i1=i;
}
if(i1==0) i1=i
Ulist[i1]=sName
Slist[i1]=sSex
Flist[i1]=sFace
if(list){
writelist();}
}

function del(sName){
var i
for(i=0;i<Ulist.length;i++)
	if(Ulist[i]==sName){
	delete Ulist[i];
	delete Slist[i];
	delete Flist[i];
}
if(list){
writelist();}
}

function wt(str){
if(top.title.document==null) return
top.title.document.open();
top.title.document.writeln("<html><head><title></title><style> body {font-family:宋体; font-size:9pt;}</style></head><body oncontextmenu=self.event.returnValue=false bgcolor=#3874d8 topmargin=2 leftmargin=9><p><font color=white>");
top.title.document.writeln(str);
top.title.document.writeln("</font></p></body></html>");
top.title.document.close();
if(top.roomname.document==null) return
top.roomname.document.open();
top.roomname.document.writeln("<html><head><title></title><style> body {font-family:宋体; font-size:9pt;}</style></head><body bgcolor=#3874d8 topmargin=2 leftmargin=9><p align=center><font color=#f0ffff>→");
top.roomname.document.writeln(Room);
top.roomname.document.writeln("</font></p></body></html>");
top.roomname.document.close();
}

function FrameExp(Fram){ 
	if(Fram==0){this.split.rows="100%,*";}
	else{this.split.rows="*,30%";}	 
	} 

</script>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="pragma" content="no-cache">
</head>

<frameset cols='*,130' border='0' framespacing='0' frameborder='NO'>

<frameset rows='*,0' framespacing='2' frameborder='NO' name="split">
<frame src='Talk' name='Talk' scrolling='AUTO' marginheight='3' marginwidth='5'>
<frame src='about:blank' name='PTalk' scrolling='AUTO' marginheight='3' marginwidth='5'>
</frameset>

<frame border="0" frameBorder="0" height="100%" marginHeight="0" marginWidth="0" scrolling="Auto" src="about:blank" name="online" width="100%">

</frameset>
</html>

⌨️ 快捷键说明

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