• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: 小 中 大 | 推荐给好友 上一篇 | 下一篇

实现聊天室的悄悄话功能(下)(转贴)

发布: 2007-6-30 18:56 | 作者: admin | 来源: | 查看: 32次 | 进入软件测试论坛讨论

领测软件测试网 《% @language="vbscript" %》   
《%   
Response.Expires=0   
‘’response.buffer=true   
%》   
《meta http-equiv="refresh" content="2.5"》   
《body bgcolor="《%=application("zj_1color")%》" topmargin="0" leftmargin="0"》   
《i》《center》《font color="#FFFF00" size=4》《%=application("zj_1title")%》《/font》《/center》《/i》   
《%   
if session("userzj_1")="" then   
session("userzj_1")=""   
session("zj_1level")=""   
session("zj_1start")=""   
session("zj_1total")=0   
session("zj_1boot")=""   
session("zj_1counter")=0   
session("zj_1open")=""   
‘’session.abandon   
%》   
《script LANGUAGE="JavaScript"》   
parent.location="timeout.htm"   
《/script》   
《%   
response.end   
end if   
  
‘’是否在捣乱?   
for n=1 to 40   
if session("userzj_1")=application("peoplezj_1"&n) then   
exit for   
end if   
  
if n=40 then   
session("zj_1boot")="true"   
%》   
《script LANGUAGE="JavaScript"》   
parent.location="boot.htm"   
《/script》   
《%   
end if   
  
next   
%》   
《script LANGUAGE="JavaScript"》   
《%   
  
if session("zj_1counter")《》application("zj_1counter") then   
if session("zj_1counter")《application("zj_1counter") then   
for i=session("zj_1counter")+1 to application("zj_1counter")   
%》   
parent.middle.document.writeln("《%=application("zj_1chats")(i)%》")   
《%   
  
next   
  
else   
for i=session("zj_1counter") to 20   
if application("zj_1counter")《》1 then   
%》   
parent.middle.document.writeln("《%=application("zj_1chats")(i)%》")   
《%   
end if   
next   
  
for i=1 to application("zj_1counter")   
  
%》   
parent.middle.document.writeln("《%=application("zj_1chats")(i)%》")   
《%   
next   
end if   
  
if session("zj_1open")="true" then   
  
session("zj_1counter")=application("zj_1counter")   
end if   
end if   
  
‘’公告   
  
if session("zj_1public")《》application("zj_1public") then   
%》   
parent.middle.document.writeln("《%=application("zj_1public")%》")   
  
《%   
session("zj_1public")=application("zj_1public")   
end if   
  
‘’有耳语吗?   
if session("zj_1chat")《》application("zj_1chat") then   
if application("zj_1owner")=session("userzj_1") or application("zj_1chatto")=session("userzj_1") or application("zj_1chatto")="ALL" then   
  
%》   
parent.middle.document.writeln("《%=application("zj_1chat")%》")   
《%   
end if   
session("zj_1chat")=application("zj_1chat")   
end if   
  
application("peoplezj_1_appear"&n)   
  
count=0   
for n=1 to 40   
if application("peoplezj_1"&n)《》"" then   
count=count+1   
  
end if   
next   
if session("zj_1total")《》count then   
session("zj_1total")=count   
session("zj_1refresh")="true"   
%》   
《/script》   
  
《%   
end if   
  
response.flush   
  
%》

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:[email protected] 电话:010-51297073

软件测试 | 领测国际 | ISTQB | ISTQB官网 | TMMi | TMMi认证 | 国际软件测试工程师认证 | 领测软件测试网