How can we get rid of this problem in flash object:
click to activate and use this control
Can we get rid of this problem?
How can we get rid of this problem in flash object:
click to activate and use this control
Can we get rid of this problem?
Here :
http://www.adobe.com/devnet/flash/ar...swfobject.html
or here - the same thing:
blog.deconcept.com/swfobject/
Thanks,
I have just found the solution:
place the following javascript code below the last OBJECT tag on the page:
=======code=====
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
objects[i].outerHTML = objects[i].outerHTML;
}
=======code ends======
You can also save it as .js file and call the file after the last OBJECT code....
Hmm, i cant seem to get it to work on my site... I tried putting the above code under the last object tag, but nothing happened.
I don't see why this is a problem.This will cause an error to be displayed in non-IE browsers.objects[i].outerHTML = objects[i].outerHTML;
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Oh, so this only works for ie?
Only IE displays the message (natively, there's a Firefox extension called FlashBlock that performs the same function but I don't think it's so easily circumventable).
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Oh, I see..
So i put:
objects[i].outerHTML = objects[i].outerHTML;
right after "</object>" in the html page, right?
Put this at the bottom of your page:This is the principle of which Raj spoke, but I don't know how effective it will be (I work with neither Flash nor IE). I still fail to understand why this message is a problem.Code:<script type="text/javascript"> for(var i = 0, es = document.getElementsByTagName("object"), e = es[0]; i < es.length; e = es[++i]) if(e.outerHTML) e.outerHTML = e.outerHTML; </script>
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Its a bit of a burden to have to double click on nav's. Clients dont fancy it much. Thanks, ill let you know if it works.
Bookmarks