[英]How to remove possibility to change focus from embedded flash
I have an embedded flash
on my site. 我的网站上有
embedded flash
。 But sometimes I need to overlay it with DIV
. 但是有时候我需要用
DIV
覆盖它。 My problem is when user accidentaly clicks into that DIV
, focus from flash will be removed. 我的问题是,当用户意外点击该
DIV
,闪光灯的焦点将被移除。 I do not have access to that flash. 我无权访问该闪光灯。
Is there any solution to totally remove possibility to change focus from flash? 有什么解决方案可以完全消除从闪光灯更改焦点的可能性?
I tried remove events with javascript from DIV
, but once javascript from site is interpreted, focus from flash is removed. 我尝试使用
DIV
javascript删除事件,但是一旦解释了来自站点的javascript,就会删除Flash中的焦点。
Thank you! 谢谢!
UPDATE: 更新:
Flash is embedded in an IFRAME
from another domain, so Cross-origin policy will not allow me to change focus back to flash if it is once removed. Flash已从另一个域嵌入到
IFRAME
,因此跨域策略不允许我将焦点一旦移到Flash上就重新更改为Flash。
Put the iframe in the id flashid
将iframe放在id
flashid
$('body').click(function(){
$('#flashid').focus()
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.