当前位置: 移动技术网 > IT编程>开发语言>其他编程 > 如何判断用户是否非正常离开聊天室?

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

2017年12月08日  | 移动技术网IT编程  | 我要评论

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

    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>
〖精彩春风之聊天室的系统公告〗"&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

[1]

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网