• 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();

  • 相关阅读:
    《数字图像处理原理与实践(MATLAB版)》一书之代码Part5
    编程算法
    SVM 输出分类概率(python)
    mysql 数据库通过拷贝文件恢复方法
    ubuntu取消自动登录
    迁移mysql数据位置
    No module named 'lsb_release'
    python3 ssl导入失败
    Linux tar: Cannot change ownership to [..]: Permission denied
    树莓派蓝牙
  • 原文地址:https://www.cnblogs.com/mixzo/p/4213500.html
Copyright © 2020-2023  润新知