English 中文(简体)
只有在一段时间内,才能在潮 the点之后再 d。
原标题:How to make a div follow the mouse s pointer only when over a span

我怎么能干一小事,直到跨过一段时间的时候?

following the link: jQuery - Follow the cursor with a DIV

上述联系表明,如何使四分五裂走到点后,但如何使四分五裂消失?

我如何去做,这只不过是在点人跨过一段时间(或四分或任何其他可能要素)时。

我指的是:在整段时间过长的时候,一片土将显示在 mo点之后。 当点人离开时,干 the必须消失......

预 收

问题回答

......

$("#spanID").hover(function() {
    $("#divID").show();
}, function() {
    $("#divID").hide();
});

或者,如果你喜欢放弃......

$("#spanID").hover(function() {
    $("#divID").stop().fadeIn();
}, function() {
    $("#divID").stop().fadeOut();
});

我将使用权宜之计,但上述法典并未初步显示四分五裂的情况。

<span onmouseover= $("#divFollower").show()  onmouseout= $("#divFollower").hide() >Span Contents</span>




相关问题
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.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签