<script language="JavaScript" type="text/javascript"> var IntervalMilliseconds=10000;//多长时间检查一次 function RefreshPage()//检查当前时间,满足条件则刷新页面 { var currentDate=new Date(); if(currentDate.getHours=3&¤tDate.getMilliseconds<IntervalMilliseconds) location.reload(); } setInterval(RefreshPage,IntervalMilliseconds);//定时检查</script>
设置个定时器 到时间了就location.href=location.href;
content是秒
url是转向地址
var IntervalMilliseconds=10000;//多长时间检查一次
function RefreshPage()//检查当前时间,满足条件则刷新页面
{
var currentDate=new Date();
if(currentDate.getHours=3&¤tDate.getMilliseconds<IntervalMilliseconds)
location.reload();
}
setInterval(RefreshPage,IntervalMilliseconds);//定时检查</script>
欢迎来坐坐我的个人网站啊 http://www.jgking.cn