onMouseover flash元素? [英] onMouseover a flash element?
问题描述
我不知道如何在Flash元素上滚动时触发一个javascript事件,即使它在 wmode:transparent
上。
我试图用onMouseover事件把一个透明的传感器div放在闪存元素上,它工作,但闪光灯变得毫无用处,完全无法点击。
欣赏任何想法。
谢谢
如果您只是在整个SWF上寻找简单的鼠标检测,那么就比ExternalInterface要多。
只要定位到< object>
或< embed>
标记,它是通过Javascript嵌入SWF文件的。
document.getElementById(content-banner)。onmouseover = over;
函数(evt)
{
alert(moused over);
}
I can't figure out how to fire a javascript event when rolling over a flash element even though it's on wmode:transparent
.
I have tried to put a transparent sensor div over the flash element with the onMouseover event and it worked but the flash became useless and totally unclickable.
Appreciate Any ideas.
Thanks
This is much simpler than ExternalInterface if you're looking for just simple mouse detection on an entire SWF.
Just target the <object>
or <embed>
tag that's embedding the SWF via Javascript.
document.getElementById("content-banner").onmouseover = over; function over(evt) { alert("moused over"); }
这篇关于onMouseover flash元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!