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).
精彩评论