利用「XXXX.htm」和「XXX.php」兩個檔案來實現資料的刷新
XXXX.htm
// 刷新程式碼
r_s = 0;
timenow = 0;
function calrs()
{
d = new Date();
(); m = d.getMinutes(); s = d.getSeconds();
if( m if( s 狀態= ' ' h ":" m ":" s;
r_s = 2000;
}
calrs();
> (){
c = document.getElementById("reload1");
c.src = "";
c.src = "XXXXX.php?reload=1";
setTimeout('reload_me()', r_s);
}
setTimeout('reload_mes( );
> ;