为什么不能弹出窗口?
<!--#include file="asp/opendb.asp"-->
<html>
<head>
<script>
function OpenWindows(url,widthx,heighx)
{
var
newwin=window.open(url,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=20,left=60,width=320,height=160");
return false;
}
function OpenWindows1(url,widthx,heighx)
{
var
newwin=window.open(url,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=20,left=60,width=500,height=300");
return false;
}
</script>
<meta content="text/html; charset=gb2312" http-equiv=Content-Type>
<meta HTTP-EQUIV=REFRESH CONTENT=3>
<meta content="Microsoft FrontPage 5.0" name=GENERATOR><meta HTTP-EQUIV=REFRESH CONTENT=3>
<title>自动刷新页面</title>
</head>
<body bgColor=#276db2 leftMargin=0 topMargin=0 marginheight="0"
marginwidth="0">
<%
username=response.cookies("oabusyusername")
set rs=server.createobject("ADODB.recordset")
rs.open "select * from msg where receive='"&username&"' and readflag=0 order by id",conn,1,1
if not rs.eof then
%>
<%
do while not (rs.eof or rs.bof)
%>
<script LANGUAGE="JavaScript">
<!--
OpenWindows('asp/ReceiveMessage.asp?id='+<%=rs("id")%>,'width=320','height=160')
//-->
</script>
<%rs.movenext
loop
end if
rs.close
set rs=nothing
conn.close
set conn=nothing%>
</body>
</html>
弹出命令OpenWindows是绝对没有错误的,我一加上sql语句限制就不弹出了,可是库里确实有符合条件的记录呀!
到底哪里写错了。功能为如果用户接到新消息则自动弹出接收信息窗口。receive是接收用户,readflag为是否读过该信息标志!
[此贴子已经被作者于2005-12-23 10:53:38编辑过]