开发者

Chrome extension go above a flash element

开发者 https://www.devze.com 2023-01-29 21:48 出处:网络
How do I make the 开发者_Go百科extension above a flash element like on YouTube. Any help would be greatly appreciated, thanks!

How do I make the 开发者_Go百科extension above a flash element like on YouTube. Any help would be greatly appreciated, thanks!

See screenshot of bug: http://twitpic.com/3egnxk


The only way to put something above flash is to set wmode embed parameter to opaque or transparent. You can't dynamically set it, flash object needs to be recreated:

$("embed").attr("wmode", "opaque").wrap("<div>");

You can run this right away on page load so user wouldn't notice.

The other disadvantage is that flash in this mode loses focus (you won't be able to play a flash game with keyboard for example).

0

精彩评论

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