zoukankan      html  css  js  c++  java
  • 闪光边框,blingbling

    <script type="text/javascript">
            var colors=["#5F9EA0","#FFFF00","cornflowerblue","green"];
            var c_index =0;
            var handle;
            var s_index =4;
            function setHM(){
                handle =setInterval(showNowTm,1000);
            }
            function showNowTm(){
                document.getElementById("div2").style.backgroundColor =colors[c_index];
                c_index++;
                if(c_index==4){
                    c_index=0;
                }
                if(s_index==0){
                    s_index=4;
                }
            }
            function clearMM(){
                window.clearInterval(handle);

    </script>
    <body>       
                <input type="button" name="btn1" id="btn1" value="冒泡方式" />
                <input type="button" name="btn2" id="btn2" value="blingbling" />

    </body>

  • 相关阅读:
    js加载优化三
    js加载优化-二
    js加载优化
    怎样获取元素的高度
    HttpClient
    Android Http请求方法汇总
    table列等宽
    单页面手机开发
    单页面
    【154】C#打包程序成安装包
  • 原文地址:https://www.cnblogs.com/kiskistian/p/7424706.html
Copyright © 2011-2022 走看看