开发者

jQuery mouseleave trigger on every pixel, when flash movie is below div

I have a problem with a flash movie, that is initated below a div element with z-ind开发者_开发技巧ex: 2000;. I have a onMouseDown event, on the div - which is triggering fine, and I have $(divelement).hover(functionIn(),functionOut()) attached. (The onClick event is captured by the underlying flash regardless of z-index)

In FF and IE9 this is all working as expected, but in IE8 the functionOut() and functionIn() is triggered on every pixel! What's a good way to fix this?

Possible to add some sort of pixel boundaries based on the element size and position to aid .hover() ?


I found a fix for this now. By using a 1px transparent gif as background on the overlaying div, the mouseleave isn't triggered until it actually should be :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜