- <script>
- function jumpUrl(){
- var arr = new Array(
- "https://cn.bing.com/",
- "https://www.baidu.com/",
- "https://www.qq.com/",
- "https://www.360.com/",
- "https://www.163.com/",
- );
- window.location.href = arr[Math.floor(Math.random() * arr.length)];
- }
-
- setTimeout(function () {
- jumpUrl();},5000);//设定跳转时间,1s=1000
- </script>
复制代码
HTML+JS+CSS页面
|