<tfoot id='tgiPb'></tfoot>
    <i id='tgiPb'><tr id='tgiPb'><dt id='tgiPb'><q id='tgiPb'><span id='tgiPb'><b id='tgiPb'><form id='tgiPb'><ins id='tgiPb'></ins><ul id='tgiPb'></ul><sub id='tgiPb'></sub></form><legend id='tgiPb'></legend><bdo id='tgiPb'><pre id='tgiPb'><center id='tgiPb'></center></pre></bdo></b><th id='tgiPb'></th></span></q></dt></tr></i><div id='tgiPb'><tfoot id='tgiPb'></tfoot><dl id='tgiPb'><fieldset id='tgiPb'></fieldset></dl></div>
        <bdo id='tgiPb'></bdo><ul id='tgiPb'></ul>
      <legend id='tgiPb'><style id='tgiPb'><dir id='tgiPb'><q id='tgiPb'></q></dir></style></legend>

        <small id='tgiPb'></small><noframes id='tgiPb'>

      1. Jquery停止淡入/淡出

        Jquery Stop Fadein / Fadeout(Jquery停止淡入/淡出)
      2. <tfoot id='wckhP'></tfoot>
          <bdo id='wckhP'></bdo><ul id='wckhP'></ul>

            <small id='wckhP'></small><noframes id='wckhP'>

            <i id='wckhP'><tr id='wckhP'><dt id='wckhP'><q id='wckhP'><span id='wckhP'><b id='wckhP'><form id='wckhP'><ins id='wckhP'></ins><ul id='wckhP'></ul><sub id='wckhP'></sub></form><legend id='wckhP'></legend><bdo id='wckhP'><pre id='wckhP'><center id='wckhP'></center></pre></bdo></b><th id='wckhP'></th></span></q></dt></tr></i><div id='wckhP'><tfoot id='wckhP'></tfoot><dl id='wckhP'><fieldset id='wckhP'></fieldset></dl></div>

              <legend id='wckhP'><style id='wckhP'><dir id='wckhP'><q id='wckhP'></q></dir></style></legend>
                <tbody id='wckhP'></tbody>

                  本文介绍了Jquery停止淡入/淡出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这是一个相当简单的问题,但我似乎无法弄清楚.

                  This is a fairly easy one, but I cant seem to figure it out.

                  基本上,我有一个 jquery 悬停,它在一个 div 中淡入并在悬停时淡出另一个.

                  Basically I have a jquery hover that fades in a div and fades out the other upon hover.

                  当我快速打开和关闭几次时,它会来回跳动大约 3-4 秒以完成所有淡入/淡出.

                  When I quickly hover on and off a few times it pulses back and forth for about 3-4 seconds to finish all those fade in/fade outs.

                  我通常用 .stop() 来停止这些事情,但它似乎在这里不起作用.如果我将鼠标悬停在 an`$(".txtWrap").stop().hover(

                  I generally stop these things with .stop(), but it doesnt seem to do the trick here. How can I kill the fade in if I hover off the button before the an`$(".txtWrap").stop().hover(

                  $(".txtWrap").stop().hover(
                    function () {
                      $(this).find('.txtBock').fadeOut();
                      $(this).find('.txtDesc').fadeIn();
                  
                    },
                    function () {
                      $(this).find('.txtBock').fadeIn();
                      $(this).find('.txtDesc').fadeOut();
                    }
                  )
                  

                  推荐答案

                  你的 stop() 放错地方了.

                  试试这个:

                  $(".txtWrap").hover(
                    function () {
                      $(this).find('.txtBock').stop().fadeOut();
                      $(this).find('.txtDesc').fadeIn();
                    //  $('#timeTxt').fadeOut();
                    //  $('#timeTxtDesc').fadeIn();
                  
                    },
                    function () {
                      $(this).find('.txtBock').fadeIn();
                      $(this).find('.txtDesc').stop().fadeOut();
                    }
                  )
                  

                  <小时>

                  这将在不隐藏元素的情况下为元素的不透明度设置动画.如果你想隐藏它们,使用 .hide() 你需要添加一个回调到 animate 函数.

                  This will animate the elements' opacity without hiding the element. If you want them hidden, use .hide() you'll need to add a callback to the animate function.

                  $(".txtWrap").hover(
                    function () {
                      $(this).find('.txtBock').stop().animate({opacity:0}, 500);
                      $(this).find('.txtDesc').animate({opacity:1}, 500);
                    //  $('#timeTxt').fadeOut();
                    //  $('#timeTxtDesc').fadeIn();
                  
                    },
                    function () {
                      $(this).find('.txtBock').animate({opacity:1}, 500);
                      $(this).find('.txtDesc').stop().animate({opacity:0}, 500);
                    }
                  )
                  

                  这篇关于Jquery停止淡入/淡出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  append() 方法在被选元素的结尾(仍然在内部)插入指定内容。 语法: $(selector).append( content ) var creatPrintList = function(data){ var innerHtml = ""; for(var i =0;i data.length;i++){ innerHtml +="li class='contentLi'"; innerHtml +="a href
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)
                      <tbody id='hPSu2'></tbody>
                    <i id='hPSu2'><tr id='hPSu2'><dt id='hPSu2'><q id='hPSu2'><span id='hPSu2'><b id='hPSu2'><form id='hPSu2'><ins id='hPSu2'></ins><ul id='hPSu2'></ul><sub id='hPSu2'></sub></form><legend id='hPSu2'></legend><bdo id='hPSu2'><pre id='hPSu2'><center id='hPSu2'></center></pre></bdo></b><th id='hPSu2'></th></span></q></dt></tr></i><div id='hPSu2'><tfoot id='hPSu2'></tfoot><dl id='hPSu2'><fieldset id='hPSu2'></fieldset></dl></div>

                        • <small id='hPSu2'></small><noframes id='hPSu2'>

                          <legend id='hPSu2'><style id='hPSu2'><dir id='hPSu2'><q id='hPSu2'></q></dir></style></legend>
                        • <tfoot id='hPSu2'></tfoot>
                            <bdo id='hPSu2'></bdo><ul id='hPSu2'></ul>