#############续send.asp#################
var ordom=new activexobject("microsoft.xmldom");
ordom.async=false;
var path="reload.asp";
var tcok;
function clock()
{crld++;
if (crld>10){crld=1;getxmldata();}
cleartimeout(tcok);
tcok=settimeout("clock()",1000);
}
function getxmldata() //这就是刷新用户xml数据的函数
{crld=1;
ordom.load(path)
if(ordom.parseerror.errorcode != 0)
{alert("sorry.出现了错误");
return }
else
{
var aryf=ordom.documentelement.selectnodes("f");
var aryt=ordom.documentelement.selectnodes("t");
var arysc=ordom.documentelement.selectnodes("sc");
var arycl=ordom.documentelement.selectnodes("cl");
var arysj=ordom.documentelement.selectnodes("sj");
var arye=ordom.documentelement.selectnodes("e");
var tmphtml="";
lengt=aryf.length;
for(var i=0;i<lengt;i++){
img="<img src=girl.gif width=12 height=12 border=0>";
tmphtml="<font style=\cursor:hand;color:"+arycl(i).text+"\>"+ev[arye(i).text*2]+rp2(arysc(i).text,"{^amp]","&")+"</font> <span class=t>["+arysj(i).text+"]</span><br>";
tmphtml=rp2(tmphtml,"$f","<a href=\"javascript:parent.sd.towho("+aryf(i).text+");\">"+img+aryf(i).text+"</a>");
tmphtml=rp2(tmphtml,"$t","<a href=\"javascript:parent.sd.towho("+aryt(i).text+");\">"+aryt(i).text+"</a>");
if (aryf(i).text==me || aryt(i).text==me)
{ parent.my.ly.innerhtml+=tmphtml;
} else
parent.pub.ly.innerhtml+=tmphtml;
}
}
delete(aryf);delete(aryt);delete(arysc);delete(arycl);delete(arysj);
}
function towho(un){
document.say.t.options[0].value=un;
document.say.t.options[0].text=un;
document.say.says.focus();return;}
</script>
<base onmouseover="parent.window.status=欢迎光临 蓝蝶精品网 www.chinaok.net 站长:netnice qicq:6097356 ;return true;">
</head>
<body bgcolor="#76b4d9" topmargin="4" leftmargin="1" >
<table border="0" width="767" cellspacing="0" cellpadding="0" >
<tr><td width="735" height="16" align="left" nowrap>
<form method="post" action="save.asp" name="say" target="b" onsubmit=return(checksays());>
<input type="hidden" name="oldsays" >
<input name="f" maxlength="10" size="10" value="<%=session("u_name")%>" readonly style="background-color: #76aadd; border-bottom: 0px double; border-left: 0px double; border-right: 0px double; border-top: 0px double; color: #ffffff; text-align: right">
对 <select name="t" onclick="this.options[0].value=大家; document.say.t.options[0].text=大家; document.say.says.focus();" >
<option value="大家" selected>大家</option>
</select> 说:<input type=text name="says" maxlength="150" size="50" style="background-color: #ffffff; border-bottom: 1px double; border-left: 1px double; border-right: 1px double; border-top: 1px double; color: #000000" accesskey="t" title="发表对话区(alt+t)可激活!" language="javascript ">
<input type="submit" name="send" value="发言" class="an" accesskey="s" onmouseover="this.style.color=3366dd" onmouseout="this.style.color=663300" title="(alt+s)">
</form></td></tr></table>
<div style="height: 80px; left: 15px; position: absolute; top: 30px; width: 600px">
<form name="ot">
<table border="0" width="600" cellspacing="0" cellpadding="0">
<tr>
<td width="160" height="16" align="center" nowrap valign="top">
<input accesskey="a" type="checkbox" name="as" checked onclick="parent.pub.scrollit();parent.my.scrollit();document.say.says.focus();"><a onclick=moveself(); title=" “激活/禁止”对话区自动滚屏(alt+a)!">滚屏</a>
</td>
<td width="230" height="16" align="left" nowrap valign="top"> <span title=" 改变你的发言的字体颜色(alt+f)!">
<select name=usercolor accesskey="f" onchange="document.say.says.style.color=this.options[this.selectedindex].value;">
<option selected style="color: #000000" value="000000">默认颜色</option>
<option style="color: #000000" value="#000000">黑色沉静</option>
<option style="color: #ff0000" value=#ff0000>红色热情</option>
<option style="color: #0000ff" value=#0000ff>蓝色开朗</option>
<option style="color: #ff00ff" value=#ff00ff>桃色浪漫</option>
<option style="color: #009900" value=#009900>绿色青春</option>
<option style="color: #009999" value=#009999>青色清爽</option>
<option style="color: #990099" value=#990099>紫色拘谨</option>
<option style="color: #990000" value=#990000>暗夜兴奋</option>
<option style="color: #000099" value=#000099>深蓝忧郁</option>
<option style="color: #999900" value=#999900>卡其制服</option>
<option style="color: #ff9900" value=#ff9900>镏金岁月</option>
<option style="color: #0099ff" value=#0099ff>湖波荡漾</option>
<option style="color: #9900ff" value=#9900ff>发亮蓝紫</option>
<option style="color: #ff0099" value=#ff0099>爱的暗示</option>
<option style="color: #006600" value=#006600>墨绿深沉</option>
<option style="color: #333333" value=#333333>灰色轨迹</option>
<option style="color: #999999" value=#999999>伦敦灰雾</option>
</select></span>
<span title=" 改变您的说话时的表情(alt+q)!" ><select accesskey="q" name=userface style="font-size: 9pt;width:65px" size="1">
<script language="javascript">
for(var if=0;if<ev.length;if+=2)
{document.writeln("<option value=\""+ev[if]+"\">"+ev[if+1]);
}
</script>
</select></span> <input type="checkbox" name="ws" id="ws" accesskey="m" ><a title=" 和聊友说句悄悄话(alt+m)!"><label for=ws >私聊</label></a> </td>
<td width="250" height="16" align="left" nowrap valign="top">
<input id=clock name=clock type=button value=1200 class="an" title="如果您长时间不发言(潜水),请注意:当计数器减至零时,您将被被踢出!" style="color:#ff3300;width:60;" disabled>
</td>
</tr>
</table> </form>
</div>
<script>
write();
getxmldata();
clock();
</script>
</body>
</html>
