English 中文(简体)
在有人被 h时,我怎么会不断点火?
原标题:How do i fire a click continuously while something is hovered?

很显然,这是一个简单的解决办法。 我正在使用j Carousellite,并想改变在纳夫纽州建筑的行为,以压倒。

$("#carousel").jCarouselLite({


 vertical: true,
 btnNext: ".btn-down",
 btnPrev: ".btn-up",
 visible:6,
 circular: false

});

$("#carousel .btn-down").hover(function() {

 $("#carousel .btn-down").click();

});

但它只是在湿度发生火灾时发生火灾,即需要在湿度期间继续大火。

最佳回答
var nav = function() {
  $("#carousel .btn-down").click(); // next move
  $("#carousel").data(
     hover , 
    window.setTimeout(nav, 1000); // continue in 1000 ms
  );
};
$("#carousel .btn-down").hover(
  nav,
  function() {
    window.cancelTimeout ($("#carousel").data( hover )); // stop the navigation
  }
);
问题回答

我的法典也存在同样的问题,当时我提出了这一解决办法。

$(document).ready(function(){
    $("someid1").hover(function a() {  //on hover over some element with id-> someid1  
        $("#someid2").animate({
            width:"+=10" 
        }, function(){
            a();
        });
    }); //execute animation function and call itself again and again on mouseover
});                                                     

$("someid1").mouseout(function() {
    $("#someid2").stop(); //stop the animation on mouseout.
});
});

这对我来说就是这样。 希望能帮助你们。

您可使用<代码>set Interval,在用户停止对冲使用时,开始定期启动活动clearInterval。 触发你想要采取的实际行为,而不是触发点击事件,假设你重新使用这种预报工具的假想,也是更清洁的。 与此类似:

var effectInterval;

$( #carousel .btn-down ).hover(function() {
  effectInterval = setInterval(function() {
    $( #carousel ).advanceToNextImage(); // sample API call, check your plugin s docs for how it might actually be done
  }, 5000);
}, function() {
  clearInterval(effectInterval);
});

你可以为点击打定一个间隔,对面的纽伦来说也是如此:

$("#carousel .btn-down").hover(function() {
  $(this).data("to", setInterval(function() { $("#carousel .btn-down").click(); }, 200));
}, function() {
  clearInterval($(this).data("to"));
});




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签