Closed GoogleCodeExporter closed 9 years ago
swfobject.embedSWF doesn't delete your class attribute, it deletes the entire
element and replaces it with an <object>.
You can transfer the original element's class to the new <object> using the
attributes option:
var flashvars = {};
var params = {};
var attributes = { styleclass: document.getElementById(divID).className };
var callback = function (){ };
swfobject.embedSWF("mov.swf", "movDivID", "500", "200", "10", false, flashvars,
params, attributes, callback);
Why "styleclass"? Read the docs:
http://code.google.com/p/swfobject/wiki/documentation#How_can_you_configure_your
_Flash_content?
Also, you shouldn't put "px" in your dimensions, you should to enter numbers
only, such as '500' instead of '500px'
Original comment by platelu...@gmail.com
on 28 Oct 2011 at 6:45
Thank you for the input. I don't know how I missed that in documentation, I
thought I'd read it all.
Anyway thanks again. This is a life saver :)
Cheers.
Original comment by pangar....@gmail.com
on 1 Nov 2011 at 12:22
Original issue reported on code.google.com by
pangar....@gmail.com
on 28 Oct 2011 at 3:07