开发者

jQuery set flash wmode parameter

开发者 https://www.devze.com 2023-01-14 03:51 出处:网络
开发者_如何学JAVAAm wondering if there is any jQuery plugin available to change the wmode to transparent at runtime. (Something similar to wibiya)
开发者_如何学JAVA

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

Are there any other options?


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')

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.

0

精彩评论

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