急!请帮帮忙!
此文件名为:blank.php
程序如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>blank</title>
</head>
<body background="5C7A536E.jpg">
<center>
<table align=center,border=0,width=700>
<tr><th width=400>参数名</th>
<th width=100>参数值</th>
<th width=200>属性</th>
<?
mssql_pconnect("ML608","sa","sa") or die("连接失败");
mssql_select_db("haha") or die("failed");
$query="select paraname,paravalue,shuxing from ruxian_gaoya";
$result=mssql_query("$query");
while($row=mssql_fetch_row($result))
{
echo "<tr>";
echo "<td align=center>".$row[0]."</td>";
echo "<td align=center>".$row[1]."</td>";
echo "<td align=center>".$row[2]."</td>";
}
?>
</center>
<script language="javascript">
<!--
var timerID;
var kssjm;
kssjm=5;
window.status="还剩下: "+kssjm+"秒";
function kspj()
{
kssjm--;
window.status="还剩下: "+kssjm+"秒";
if (kssjm==0)
{
clearInterval(timerID);
location.href="blank.php";
}
}
function starttimer()
{
timerID=setInterval("kspj()",1000);
}
starttimer();
//-->
</script>
</body>
</html>
运行后,页面每5秒刷新一次,但是每次都要重新链接,造成页面一闪一闪的,请问怎么解决这个问题啊?