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>

  • 相关阅读:
    数据类型基础
    变量的三个特征
    常量
    变量
    django基础 -- 2. django初识
    django基础 -- 1. 前奏 web框架的本质
    前端 --- 7 Bootstrop框架
    前端 --- 6 jQuery 初始
    前端 --- 5 BOM 和 DOM
    前端 --- 4 js
  • 原文地址:https://www.cnblogs.com/kiskistian/p/7424706.html
Copyright © 2011-2022 走看看