<html>
<head>
<title>基于web的QQ程序1</title>
<meta http-equiv="refresh" content="5">//每五秒取得一次信息(前面已經(jīng)完成了有關(guān)登錄之類的工作)
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
//假設(shè)同時通信量為30
<%
response.write("現(xiàn)在在線:"&"<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>