zoukankan      html  css  js  c++  java
  • mouseenter 事件,固定右侧客服特效


    不论鼠标指针穿过被选元素或其子元素,都会触发 mouseover 事件。

    只有在鼠标指针穿过被选元素时,才会触发 mouseenter 事件。

    当鼠标指针离开元素时,会发生 mouseleave 事件。

    <div class="kefu">
    <div class="aaa" style="position: fixed; 40px; height: 200px; background: green; right: 0; top:500px; cursor: pointer; color:#fff;">右侧客服</div>
    <div class="bbb" style="position: fixed; 200px; height: 200px; background:blue; right: 0; top:500px; display: none; cursor: pointer; color:#fff;">右侧客服内容区</div>
    </div>

    <script type="text/javascript">
    $(document).ready(function(){
    $(".kefu").mouseenter(function(){
    $(this).find(".bbb").fadeIn(500);
    });
    $(".kefu").mouseleave(function(){
    $(this).find(".bbb").fadeOut(500);
    });
    })
    </script>
  • 相关阅读:
    POJ 1475 推箱
    POJ 2253 Frogger
    POJ 1970 The Game
    POJ 1979 Red and Black
    HDU 1546 Idiomatic Phrases Game 求助!help!!!
    Fibonacci 1
    BZOJ 1041
    椭圆曲线质因数分解
    奇怪的高精度
    数论v2
  • 原文地址:https://www.cnblogs.com/amy-1205/p/5821113.html
Copyright © 2011-2022 走看看