显示页面show.asp--基于web的QQ程序1 
发布时间:2006-10-14 2:59:01   收集提供:gaoqian
显示页面show.asp--基于web的QQ程序1(only asp)
<html>
<head>
<title>基于web的QQ程序1</title>
<meta http-equiv="refresh" content="5">//每五秒取得一次信息(前面已经完成了有关登录之类的工作)
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
//假设同时通信量为30
<%
response.write("现在在线:"&"<br>"
for i=1 to 30
if application("user"&i)=session("user") then
response.write("<font color=#FFFF00>")
response.write(session("user")&"</font>")
else
response.write(application("user"&i)&"<br>")
end if
if application("towho"&i)=session("user") then%>

<script language="javascript">
window.open("inform.asp","","width=200,height=400")
</script>

<%end if
next%>
</body>
</html>
 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50