网络编程
位置:首页>> 网络编程>> Asp编程>> 如何判断用户是否非正常离开聊天室?

如何判断用户是否非正常离开聊天室?

 来源:asp之家 发布时间:2010-01-18 20:30:00 

标签:聊天室,用户,在线

主要代码如下:

    total = application("AllPeople")
' 聊天总人数
    aryHuman = split(total,";")
    for i = lbound(aryHuman) to ubound(aryHuman) - 1
    if application("user" & i) = "online" then
    if int(timer) - int(application("TimeBegin" & i)) > 120 then
    application("user" & i) = ""
    temp = aryHuman(i)
    aryName = split(temp,",")
    hrefname =  aryName(0) 
    for j = lbound(aryHuman) to ubound(aryHuman) - 1
    if application("user" & j) = "online" then
  application("content" & j) = "<FONT color=#000000>〖asp之家聊天室的系统公告〗"&hrefname&"</FONT>" &"<font  color=#F08000 >"& "掉线了..." & "</font><font color = #000000 class=p9>" & "  <" & time() & "></font><br>" & application
("content" & j)
    end if
    next
    end if
    end if
    next

 

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com