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

来源: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
投稿

猜你喜欢

  • 教你为SQL Server数据库构造安全门

    2009-01-20 11:34:00
  • ASP生成柱型体,折线图,饼图源代码

    2007-09-20 12:56:00
  • WEB2.0网页制作标准教程(5)head区的其他设置

    2007-11-13 13:28:00
  • 如何创建SQL Server 2000故障转移群集

    2009-02-13 17:18:00
  • 如何固定表格的标题行和标题列

    2007-09-20 13:03:00
  • JavaScript match() 方法

    2007-11-04 13:28:00
  • 使用css2.1实现多重背景、多重边框效果[译]

    2010-08-23 16:32:00
  • ASP表单验证方法总结

    2007-10-06 22:43:00
  • 分享很实用的css圆角写法[百度有啊提取]

    2009-01-06 13:05:00
  • Sqlserver 2000/2005/2008 的收缩日志方法和清理日志方法

    2012-07-21 14:55:18
  • SQL脚本语言学习(黑客篇)

    2008-02-29 13:09:00
  • HTML,CSS和JavaScript速查表

    2010-09-16 13:02:00
  • asp fso删除非空目录的例子

    2008-11-26 20:03:00
  • 索引的原理及索引建立的注意事项

    2012-08-21 10:27:47
  • asp如何用组件实现自动发送电子邮件?

    2010-06-16 09:56:00
  • 纯CSS3透明水晶盒

    2011-08-24 20:20:06
  • 在 SQL Server数据库开发中的十大问题

    2009-01-20 14:56:00
  • asp 根据IP地址自动判断转向分站的代码

    2011-04-14 10:51:00
  • 用CSS实现柱状图(Bar Graph)的方法(二)—基于表格元素的柱状图

    2008-05-26 13:23:00
  • 四种方法在SQL Server数据库中成批导入数据

    2009-02-19 17:25:00
  • asp之家 网络编程 m.aspxhome.com