zoukankan      html  css  js  c++  java
  • jQuery 屏蔽鼠标快速经过

    <script type="text/javascript">
        $(".Banner ul li").bind('mouseover', function()
        {
            var cur = $(this).index();
            function action()
            {
                $(".Banner ol li").eq(cur).fadeIn(800);
                $(".Banner ol li").eq(cur).children("b").fadeIn(800);
            }
            handle = setTimeout(action, 500);
        }).bind('mouseout', function()
        {
            clearTimeout(handle)
        });
    </script>

    导航:

    var navFun = function() {
        var mouseover_tid = [];
        var mouseout_tid = [];
     
        $(".header .nav li").each(function(index) {
            $(this).hover(
            function() {
                var _self = this;
                clearTimeout(mouseout_tid[index]);
                mouseover_tid[index] = setTimeout(function() {
                    $(_self).addClass("hover").children().children("i, .nav-show").fadeIn(300);
                }, 200);
            },
            function() {
                var _self = this;
                clearTimeout(mouseover_tid[index]);
                mouseout_tid[index] = setTimeout(function() {
                    $(_self).removeClass("hover").children().children("i, .nav-show").fadeOut(300);
                }, 200);
            })
        })
    }

    navFun();

  • 相关阅读:
    Beacon技术是什么?
    exclude kernel or other packages from getting updated
    (OK) running CORE & docker on Fedora 23 server
    (OK) dnf
    (OK) dnf
    rpm
    dnf
    dnf install -y kernel-4.2.3-300.fc23
    paper4—Multi-MPE_Trigger_Algorithm—testing
    paper4—Multi-MPE_Trigger_Algorithm
  • 原文地址:https://www.cnblogs.com/mixzo/p/4213500.html
Copyright © 2011-2022 走看看