zoukankan      html  css  js  c++  java
  • Jquery实现鼠标hover图片遮罩弹出提示层特效

    1、引入JS文件和所需要的样式文件

    2、简单的写上以下18行代码就可以实现了

    $(document).ready(function() {
    
        $("div.tip_trigger a.img").hover(function() {
    
            $(this).parent('div.tip_trigger').css({
    
                'background': '#8de08b',
    
                'z-index': '1000'
    
            });
    
            $('#h_coolsite .block').show();
    
            tip = $(this).siblings('.tip');
    
            tip.show();
    
        },
        function() {
    
            $(this).parent('div.tip_trigger').css({
    
                'background': 'none',
                'z-index': '0'
    
            });
            $('#h_coolsite .block').hide();
    
            tip.hide();
        })
    19
    })
  • 相关阅读:
    Python Day14
    Python Day13
    Python Day12
    Python Day11
    Python Day10
    Python Day9
    Python Day8
    Python Day7
    Python Day6
    Python Day5
  • 原文地址:https://www.cnblogs.com/SJP666/p/4728599.html
Copyright © 2011-2022 走看看