html定时跳转页面
2024-09-01 16:16:32
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="baidu-site-verification" content="ja4snz5Jr1" /><!--包含头文件--></head><style>
p{
font-size: 50px;
height: 80px;
position: fixed;
top: 0px;
bottom:0px;
left: 0px;
right: 0px;
margin: auto;
text-align: center;
}
#seconds{
color: red;
}
*{
margin: 0px;
padding: 0px;
}
html,body{
width: 100%;
height: 100%;
background: url("/cn/Index/Tpl//Public/images/bg5.jpg") no-repeat center;
background-size: cover;
} </style><body><p>请等待...<span id="seconds">60</span>秒</p></body><script>
var interval =window.setInterval("clock()",1000);
var second = 60;
var a = parseInt(60*Math.random()); function clock(){
if(second == a){
window.clearInterval(interval);
window.location.href="www.baidu.com"; }else{
second = second-1
document.getElementById("seconds").innerHTML = second; }
}
</script></html>
最新文章
- DataTable常用代码
- 从分布式一致性谈到CAP理论、BASE理论
- build.xml配置编译打包过程(转)
- Linux驱动框架之framebuffer驱动框架
- 用Canvas写一个炫酷的时间更新动画玩玩
- 基于jQuery实现的水平和垂直居中的div窗口
- 自己动手写一个编译器Tiny语言解析器实现
- PHP 删除非法UTF-8字符
- 我的前端故事----关于redux的一些思考
- apollo实现c#与android消息推送(二)
- linux环境下 python环境import找不到自定义的模块
- POJ2155(二维树状数组)
- 针对2017年淘宝开放平台应用整改被封停或强制入塔政策实现不入塔不模糊正常调用API的解决方案
- 关于Kafka java consumer管理TCP连接的讨论
- lmbench性能分析工具
- change丶未来科技公众号成立了!!!!!!!!!
- ios网络编程(入门级别)-- 基础知识
- windbg(1)
- 调试web api的工具 谷歌插件 Restlet
- display:table-cell实现水平垂直居中
热门文章
- Python Ethical Hacking - DNS Spoofing
- Python Ethical Hacking - Malware Packaging(1)
- Linux切换用户时报错/.bash_profile: Permission denied,命令行(终端提示符)出现-bash-4.2$
- web自动化 -- 框架
- springboot(4)Druid作为项目数据源(添加监控)
- linux dig 命令使用
- matplotlib颜色线条及绘制直线
- PHP ord() 函数
- 教你在 Linux 下时光穿梭
- C/C++编程笔记:C++入门知识丨从结构到类的演变