【问题标题】:(jQuery) How Still Hover, still showing ... this(jQuery)如何仍然悬停,仍然显示......这个
【发布时间】:2011-02-25 14:46:23
【问题描述】:

http://jsfiddle.net/5MwVg/15/

当我仍然悬停时,仍然会显示...

怎么做?非常感谢阿吉安

PS:谢谢你并添加淡入淡出效果......

【问题讨论】:

  • 你想要什么?你的问题不清楚。用普通英语写。

标签: jquery hover fade


【解决方案1】:

我想你正在寻找这个:

JavaScript:

$(document).ready(function() {
    $(".post-box").bind('mouseenter', function() {
        $(this).find(".readthis").fadeIn()
    })
    $(".post-box").bind('mouseleave', function() {
        elem = $(this)
        setTimeout(function() {
            elem.find(".readthis").fadeOut()
        }, 2000)
        return false;
    });
});

HTML:

<div id="post-wrapper"> 
    <div class="post-box"> 
        <a style="margin: -5px 0 0 -6px; display: none; position: absolute;" href="#">
        <img src="http://www.filmsys.com/images/star-icon.gif"></a> 
        <img src="http://www.google.com/intl/en_ALL/images/srpr/logo1w.png" />
    </div>
</div>

【讨论】:

  • 为您修改过,是否符合您的要求?将来尝试在标题中更具描述性,您会得到更好的答案。
猜你喜欢
  • 2011-01-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-09-02
  • 2015-05-16
  • 1970-01-01
  • 2014-02-22
相关资源
最近更新 更多