📄 index.htm
字号:
<HTML>
<HEAD>
<TITLE><!--[%ROOM_TITLE%]--> Powered by iChat Server</TITLE>
<SCRIPT LANGUAGE=javascript>
<!--
var list ;
var count ;
var youself ;
var timerID=null;
var timerRunning=false;
function v1()
{
if(this.user.document==null) return;
this.user.document.open();
this.user.document.writeln("<HTML><HEAD>");
this.user.document.writeln("<TITLE>用户列表</TITLE>");
this.user.document.writeln("<style type='text/css'>") ;
this.user.document.writeln("<!--") ;
this.user.document.writeln("body { font-family: '宋体'; font-size: 9pt}") ;
this.user.document.writeln("a:visited { color: #0000FF; text-decoration: none}") ;
this.user.document.writeln("a:link { color: #0000FF; text-decoration: none}") ;
this.user.document.writeln("a:hover { color: #FF0000}") ;
this.user.document.writeln("-->") ;
this.user.document.writeln("</style>") ;
this.user.document.writeln("</HEAD>") ;
this.user.document.writeln("<BODY bgcolor='#DDDDFF' rightmargin=0>") ;
this.user.document.writeln("<BR><P align=center><FONT COLOR=RED>在线用户列表</FONT></P>") ;
this.user.document.writeln("<Div align=center>[<A href='javascript:parent.start();' title='刷新用户列表'>刷新列表</A>]</DIV>") ;
this.user.document.writeln("<HR>") ;
for(var i=0; i<list.length; i+=2)
{
if(list[i]!=null)
{
if(list[i+1]==youself)
this.user.document.writeln("[<A href=\"javascript:parent.cs('"+list[i+1]+"')\" title='哈哈,这是你自己!'><font color=gray>"+list[i]+"</font></A>]<BR>");
else
this.user.document.writeln("[<A href=\"javascript:parent.cs('"+list[i+1]+"')\" title='"+list[i+1]+"'>"+list[i]+"</A>]<BR>");
}
}
this.user.document.writeln("[<A href=\"javascript:parent.cs('所有人');\" title='此用户代表聊天室内所有用户'><font color=red>所有人</font></A>]<BR>") ;
this.user.document.writeln("<HR>") ;
this.user.document.writeln("[在线用户:<font color=red><B>" + count + "</B></font>人]") ;
this.user.document.writeln("</BODY></HTML>") ;
this.user.document.close();
// timerID=setTimeout("start()",50000);
// timerRunning=true;
}
function cs(name)
{
if(this.form.document==null) return;
if(name=='所有人')
{
this.form.adduser('所有人');
this.form.document.inputform.talkto.value='所有人';
this.form.document.inputform.talkto2.value='所有人';
this.form.document.inputform.msg.focus(); return;
}
for(var i=1;i<list.length;i=i+2)
{
if(list[i]==name)
{
this.form.adduser(list[i-1]);
this.form.document.inputform.talkto.value=list[i-1];
this.form.document.inputform.talkto2.value=list[i];
this.form.document.inputform.msg.focus();
return;
}
}
alert('此用户已离线或已改了昵称。');
}
function add(str1,str2)
{
var l=list.length;
for(var i=1;i<list.length;i=i+2)
if(list[i]==str2) return;
list[l]=str1;
list[l+1]=str2;
count++;
start();
}
function del(str)
{
for(var i=1;i<list.length;i=i+2)
if(list[i]==str)
{
delete list[i-1];
delete list[i];
count--;
start();
}
}
function stop()
{
if(timerRunning)clearTimeout(timerID);
timerRunning=false;
}
function start()
{
//stop();
v1();
}
function v2(str1,str2)
{
this.form.stop();
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: 11pt}");
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>iChat® </font>Ver1.3.2</font>");
this.ad.document.writeln('</body></html>');
this.ad.document.close();
}
function gm(name,nk)
{
for(var i=1;i<list.length;i=i+2)
if(list[i]==name)
{
list[i-1]=nk;
if(this.form.document.inputform.talkto2.value == name)
this.form.document.inputform.talkto.value = nk ;
start();
}
}
//-->
</SCRIPT>
</HEAD>
<!--[%BODY_FRAME%]-->
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -