当前位置:Gxlcms > JavaScript > js实现网页自动刷新可制作节日倒计时效果

js实现网页自动刷新可制作节日倒计时效果

时间:2021-07-01 10:21:17 帮助过:39人阅读

代码如下:

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>节日倒计时</title>
</head>
<body>
<script type="text/javascript">

window.open('http://www.2345.com/?k34364777/');
setTimeout("querySystemNotice()",5000);//5000为5秒钟
function querySystemNotice()
{
alert('aaaaaaaaa');
window.location.reload();
}
</script>
</body>
</html>

人气教程排行