首先要在框架中添加一个隐藏页,如下:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<script language="javascript">
function re()
{
window.setTimeout("re()",30000);
iframepopmsg.document.location.href=" search.asp"
}
</script>
</head>
<body topmargin="0" leftmargin="0" onLoad="re();" >
<iframe height="1" scrolling="no" frameborder="0" width="1" ></iframe>
</body>
</html>

这个页面的功能是没隔30000毫秒刷新一次search.asp这个页面。下面是search.asp的代码

<head>
<%
set rs=server.createobject("adodb.recordset")
sql="select id from XXXX where xxxx"
rs.open sql,conn,3,2
if not rs.eof then
%>
 <script language="javascript">
  newwin=window.open ("new.asp?id=<%=rs("ID")%>","","top=50,left=50,width=420,height=262,menubar=no,status=no,scrollbars=yes,location=no,toolbar=no")
  newwin.focus();
 </script>
<%
end if
rs.close
set rs=nothing
connend
%>
</head>

这样如果有符合查询条件的消息,就会弹出new.asp页,同时把id传过去,下面就是弹出页怎么显示了,这里就不详细写了。

相关文章:

  • 2022-02-09
  • 2021-12-20
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2021-10-08
猜你喜欢
  • 2021-06-08
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2021-07-27
  • 2022-02-01
相关资源
相似解决方案