|
<html>
<head>
<span id = "show"></span>
<script id="DataLoad" language="JavaScript" type="text/javascript" defer></script>
<script language="JavaScript" type="text/javascript">
function GetData()
{
var url="./test_refresh.php";//调用页面
DataLoad.src = url;
var timeoutid = setTimeout("GetData()",1000)
}
GetData();
</script>
</body>
调用的文件test_refresh.php)
<?php
header("Cache-Control: no-cache, must-revalidate");
$t =date('Y-m-d H:i:s');
?>
document.getElementById("show").innerHTML = "<font size=5><?php echo ($t*360);?></font>"
但是总有鼠标调用时的等待图标,也就是没有做到无刷新,请大家帮忙解决,谢了. |
|