/** *
object
* element (having type="application/x-shockwave-flash" specified)
* so that they work in ActiveX/COM-supporting browsers (most notably
* IE/MSHTML).
*
* @return boolean
* true
if successful, false
otherwise.
*/
fix: (function () {
var
jsx_object = jsx.object,
jsx_global = jsx.global,
jsx_dom = jsx.dom;
return function () {
if (!jsx_object.isMethod(jsx_global, "ActiveXObject"))
{
return false;
}
var objs = jsx_dom.getElemByTagName("object");
if (objs && objs.length)
{
for (var i = objs.length; i--;)
{
var o = objs[i];
if (o.type == "application/x-shockwave-flash")
{
if (jsx_object.isMethod(o, "removeAttribute"))
{
o.removeAttribute("data");
}
o.classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540001";
}
}
return true;
}
return false;
};
}())
};