jQuery设置flash wmode参数 [英] jQuery set flash wmode parameter
问题描述
我想知道是否有任何jQuery插件可以在运行时将wmode更改为透明。 (类似于wibiya的东西)
Am wondering if there is any jQuery plugin available to change the wmode to transparent at runtime. (Something similar to wibiya)
我尝试使用谷歌搜索,但找不到任何确切的插件。我发现的唯一资源是:
I tried googling, but could not find any exact plugin do to the job. The only resource I found was:
http://www.onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/
http://labs.kaliko.com/2009/11/change-wmode-with-jquery.html
还有其他选择吗?
推荐答案
你找不到像这样相对少量功能的插件;我认为这个片段应该只是覆盖它:
You won't find a plugin for a relatively small amount of functionality like this; I think this snippet should just about cover it however:
$("object").append(
$("<param/>").attr({
'name': 'wmode',
'value': 'transparent'
})
).find("embed").attr('wmode', 'transparent')
我不确定什么时候最好运行它; ready
可能有效但我预计可能为时已晚,因为Flash内容已经嵌入了?值得尝试。
I'm unsure when best to run it; ready
might work yet I expect that may be too late as the flash content will have already been embedded? Worth experimenting with.
这篇关于jQuery设置flash wmode参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!