Quote:
Originally Posted by ArchangelX
I tried it for my site, and it didn't work. I have embedded SWF files, but they don't use Objects...is that why?
|
if you use Object Tag or Embed Tag or Both
Just replace the code with this
Code:
fls = document.getElementsByTagName("object");
for (var a = 0; a < fls.length; a++){fls[a].outerHTML = fls[a].outerHTML;}
flsa = document.getElementsByTagName("embed");
for (var a = 0; a < flsa.length; a++){flsa[a].outerHTML = flsa[a].outerHTML;}
i used the code that "NeutralizeR" post and added the element for the embedded tag
and its works excellent :up: