问题标签 [mouseout]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
jquery - jquery:mouseout 适用于嵌套元素
ul
链接嵌套在 div 层中。鼠标指针越过.title
,ul
显示。
问题:mouseout()
适用于嵌套元素
mouseout()
是为div
javascript - IE8 图像地图上的鼠标悬停
我在执行我的 javascript 时遇到了 IE(谁不是)问题。在 IE8 中将鼠标悬停附加到图像映射是否存在任何已知问题?我没有看到任何类似的帖子。
例如,这是我的一个页面中的 HTML:
很简单。在除 IE 之外的所有浏览器中,这都会执行“淡入淡出”功能以淡入(或淡出)带有一些信息的 div。
函数本身就在这里,但我认为问题不在于函数,而在于鼠标悬停。
谢谢,
-tcm <><
javascript - mouseout 事件发生多次
嗨:当我向父元素添加 mouseout 事件时,似乎它的所有子元素也都添加了此事件,如果事件是鼠标单击等,则效果很好。
但是对于 mouseout 事件,这会导致一些意想不到的结果。
看看这个例子:
请从红色 div 移到黑色 div,然后移出黑色 div,然后你会得到两个警报窗口,我只想要一个。
那么如何解决呢?
jquery - 在mouseout jquery上删除类
我正在使用一个很棒的 jquery 幻灯片菜单!
鼠标移出时我需要在子类上添加删除功能
下面的代码
下面的HTML:
java - 鼠标退出java上的锁定事件
我写了一个应用程序,您可以在其中左右拖动一些时间线。当我拖动时,我知道这是一个 mouseDragged 事件。由于我将鼠标光标移到组件之外,它会停止拖动,但我不希望这样。
所以我想以某种方式锁定该组件上的 mouseDragged 事件,但如果我将光标移到组件外,我不会再收到 mouseDragged 事件。
我该如何解决?我的同事告诉我,存在一些像 captureMouse 这样的功能。
javascript - jQuery 的 mouseout() 和 mouseleave() 有什么区别?
jQuery 的 mouseout() 和 mouseleave() 有什么区别?
javascript - 在鼠标悬停时设置两帧之间的时间延迟
我必须为 single 显示两个图像mouseover
。因此,当我mouseover
到图像时,首先显示图像,然后以 5000 的时间延迟显示图像,以显示相同的悬停。现在mouseout
显示原始图像。
我对 JavaScript 和 jQuery 不太熟悉。
有人可以给我一些关于如何做到这一点的想法。
我所做的是,
jquery - jQuery中的淡出
我正在尝试添加一个 Jquery 函数,用于在我的 html 结构中的跨度内的链接悬停时更新 div
我写的jQuery是
我像这样写
上面的 jquery 更新了 image-hover div 并通过fadeIn 显示 div 但它总是淡出。
只有当我的鼠标悬停在 div(image_hover) 或任何正文元素之外时,我才试图淡出 DIV image_hover。
在这种情况下,如果我的鼠标位于链接或 div 上或 div (image_hover) 内的任何元素上,则 Div 不应淡出。
请对此提出建议/。
怎么办??
jquery - Losing the eventMouseout call in FullCalendar
When a user hovers over an event in the FullCalendar, I execute this code in the eventMouseover
All it does is store the original title, and then change it to the delete text. Then it tells the calendar to update the event so it will show the updated title.
Then in the eventMouseout event, I want to reset the title back to what it use to be.
The problem is that with the updateEvent call in the mouseover event, the mouseout event will never fire. If I put an alert in the mouseout event, it won't fire unless I comment out the updateEvent line in mouseover.. I'm guessing it has something to do with how FullCalendar updates an existing event, but I'm not fluent enough in jQuery to really tell why this happening.
Any ideas on how to get around this? I know there are alternatives to trying to alter the event title in order to display the text, but I'd prefer to do it this way rather than using something like a tooltip plugin.