zoukankan      html  css  js  c++  java
  • 数字递减(5秒钟跳转页面)

     
    <script type="text/javascript" >         window.onload = function () {             //定义这个setTimeout 就是1秒执行一次!             setTimeout(Change, 1000);         };         function Change() {             var time = document.getElementById("time").innerHTML;             time = parseInt(time);             time--;             if (time<1) {                 var url = document.getElementById("url").href;                 window.location.href = url;             } else {                 document.getElementById("time").innerHTML = time;                 setTimeout(Change, 1000);             }         }     </script>
    </head>
    <body>    <span style="font-size:28px;color: #ff0000" id="time">5</span><a id="url" href="Default.aspx"></a>
    </body>
    </html>
  • 相关阅读:
    手机抓包方法
    IBM appscan 9.0破解版分享
    C#打开新页面
    双城记
    卸载趋势
    测试环境搭建
    C#常用函数→ASP.NET篇
    C#常用函数--通用篇
    读>>>>白帽子讲Web安全<<<<摘要→我推荐的一本书→1
    TCP/IP网络编程技术基础
  • 原文地址:https://www.cnblogs.com/crazyair/p/3638471.html
Copyright © 2011-2022 走看看