<!--脚本开始-->
<script language=javascript>
function countDown(secs,surl){
//alert(surl);
tiao.innerText=secs;
if(--secs>0){
setTimeout("countDown("+secs+",'"+surl+"')",1000);
}
else{
location.href=surl;
}
}
</script>
<!--脚本结束-->
|
然后在下面引用跳转函数:
<br><span id="tiao">3</span>秒后自动跳转到PHPINFO页面<script language=javascript>countDown(3,'phpinfo.php');</script>
|
长期招聘java,有找工作可以联系我,微信:caozhenhua1563