XMLHTTP+Javascript+Asp写得聊天室,无刷新实现(三)

################reload.asp##############

1'Response.ContentType="text/xml"   
2Response.Write "
3<?xml version=""1.0"" encoding=""GB2312""?>
4"   
5Response.Write "

<msg>"
dim c_info,c_Lid,c_Ip,u_Lid,NewLid,u_name,i
c_info=Application("c_info")
u_Lid=session("u_Lid")
newLid=u_Lid
u_name="netnice"
for i=c_info(0)+6 to 240 step 6
if (c_info(i)&gt;u_Lid) and ((c_info(i+1)=u_name) or (c_info(i+2)=u_name) or (c_info(i+2)="大家") or (c_info(i+3)="0")) then
Response.Write c_info(i+5)
if (newLid<c_info(i)) (c_info(i)="" 6="" c_info(0)="" end="" for="" i="1" if="" newlid="c_info(i)" next="" step="" then="" to="">u_Lid) and ((c_info(i+1)=u_name) or (c_info(i+2)=u_name) or (c_info(i+2)="大家") or (c_info(i+3)="0")) then
Response.Write c_info(i+5)
if (newLid<c_info(i)) "<="" end="" if="" msg="" newlid="c_info(i)" next="" response.write="" then="">"
session("u_Lid")=newLid

Published At
Categories with Web编程
Tagged with
comments powered by Disqus