【发布时间】:2013-05-26 07:50:50
【问题描述】:
我的网站上有一个简单的动画,默认情况下我只显示 frame1。我的目标是,当用户悬停图像时,我想继续执行下一帧。我试过使用 mouseenter 和 mouseover 函数。但是,如果您在容器内移动鼠标,它们只会执行这些功能。我只想在鼠标在容器内并且即使它没有移动时继续执行这些功能。
【问题讨论】:
-
请创建小提琴以了解您尝试过的内容
-
$(this).mouseover(function(){-code here});
-
那是我现在的小提琴什么?
-
提供html和js代码或将代码粘贴到jsfiddle.net
-
这还不够$(this).mouseover(function(){-code here})吗?我需要的只是附加功能,一旦鼠标进入容器内,鼠标悬停就可以继续触发。您也不需要粘贴 html。
标签: jquery mouseover mouseenter