JQuery set flash wmode parameter

I am wondering if there is any jQuery plugin to change wmode to transparent at runtime. (Something like a vibration)

I tried googling but could not find the exact plugin to work. 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?

+2
source share
1 answer

You will not find a plugin for a relatively small number of functions like this; I think this snippet should just cover it:

$("object").append( $("<param/>").attr({ 'name': 'wmode', 'value': 'transparent' }) ).find("embed").attr('wmode', 'transparent') 

I am not sure when it is better to launch it; ready might work, but I expect it might be too late since Flash content has already been embedded? Worth experimenting with.

+2
source

Source: https://habr.com/ru/post/1381679/


All Articles