WEB开发网
开发学院WEB开发ASP XMLHTTP+Javascript+Asp写得聊天室,无刷新实现(... 阅读

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

 2001-09-17 11:05:06 来源:WEB开发网   
核心提示:reload.asp##<%'Response.ContentType="text/xml"Response.Write "<?xml version=""1.0"" encoding=""GB2312&quo
################reload.asp##############

<%'Response.ContentType="text/xml"
Response.Write "<?xml version=""1.0"" encoding=""GB2312""?>"
Response.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)>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)) then newLid=c_info(i)
end if
next
for i=1 to c_info(0) step 6
if (c_info(i)>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)) then newLid=c_info(i)
end if
next
Response.Write "</Msg>"
session("u_Lid")=newLid
%>


Tags:XMLHTTP Javascript Asp

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接