用一个页面定时检测(比如1分钟刷新一次),如果有新消息就用window.open() 来打开窗口。

解决方案 »

  1.   

    不是
    spring_ok(SpringDotNet)说的是对的谁有这方面的资料
      

  2.   

    一个用PHP写的
    转载自1000script.com的windy2000<iframe src=monitor.php width=0 height=0 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=NO></iframe>monitor.php<meta http-equiv='Refresh' content='60'><meta http-equiv="expires" content="0"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="pragma" content="no-cache"><?phprequire("config.php");$connect=mysql_pconnect($servername,$dbusername,$dbpassword);include("onlinemsg.php");$onlinemsg=new onlinemsg;$msg=$onlinemsg->guarder();if($msg[0]!=""){ if($msg["spirit"]=="yes"){?><SCRIPT LANGUAGE="JavaScript"> window.document.location.href="/showspirit.php";</SCRIPT><?php }else{?><SCRIPT LANGUAGE="JavaScript"> window.open("/showmsg.php","","WIDTH=500,HEIGHT=180,left=100,top=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");</SCRIPT><? }}$onlinemsg->refresh();?>