开发者

Chrome extension go above a flash element

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜