3秒后跳转首页
<script>a=5;b=a+3;document.write(b);</script>
文章共267字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
<?php
function tz(){
echo "<p><b id='tz'>3</b>秒后跳转首页</p><script>tz=document.getElementById('tz');m=3;setInterval(function(){tz.innerHTML=--m;if(m==0){location='/';}},1000);</script>";}
?>
<html>
<head>
<meta charset="utf-8"/>
<title>你好</title></head>
<body><h1>欢迎来到我的网站!</h1>
<?php
tz();
?>
</body></html>
更多推荐
已为社区贡献1条内容
所有评论(0)