这样写试试:我测试过了,可以的
<script>
function hi01()
{var top = window.screen.height-300+"px";
var left= window.screen.width-310+"px";var url="1.html";window.open(url,"_blank",'width=300px,height=200px,left='+0+',top='+top+',resizable=1,scrollbars=no,menubar=no,status=no' );}
setInterval("hi01()",2000);
</script>
<script>
function hi01()
{var top = window.screen.height-300+"px";
var left= window.screen.width-310+"px";var url="1.html";window.open(url,"_blank",'width=300px,height=200px,left='+0+',top='+top+',resizable=1,scrollbars=no,menubar=no,status=no' );}
setInterval("hi01()",2000);
</script>
1.html 修改成你的message.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script language="javascript">
var newWin=null;
function hi01()
{
// debugger;
if(newWin!=null&&(!newWin.closed))
return;
var top = window.screen.height-300;
var left= window.screen.width-310;
var url="index.php";
newWin=window.open(url,"_blank",'width=300px,height=200px,left='+0+',top='+top+',resizable=1,scrollbars=no,menubar=no,status=no' );
} window.onload=function()
{
hi01();
setInterval("hi01()",2000); }
</script>
</HEAD> <BODY >
</BODY>
</HTML>