Sounds like it would work to me. You might want to use ExernalInterface rather than getURL to call your removeWarning() js function (as well as placing the removeWarning function definition in the head).
Cheers, Aran BTW - offtopic is ok with me as long as it is interesting :) -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of dck Sent: Wednesday, 10 December 2008 2:43 PM To: SWFObject Subject: Re: Having difficulty with Firefox < This is very likely off-topic now > I got my warning to work. Maybe someone can come out with better idea than I, but as work around, this should do fine. ---------- Head ---------- <script type="text/javascript" src="swfobj..."></script> <script type="text/javascript"> swfobject.embedSWF("moviename.swf", "divtag",...); </script> ---------- Body ---------- <div id="divtag">Alternate Contents</div> <div id="warntag"> <script>document.write('You are running extension, add-on, and/or plug-in that prevent Flash from loading. Please disable them to view site in full.');</script> </div> <script>function removeWarning() {document.getElementById ('warntag').innerHTML = "";}</script> ---------- AS2 ---------- getURL('JavaScript:removeWarning()'); I think most would know how this works. If not: Head - load and embed swf with swfObject 2.1. Body - "divtag" show alternate contents if javascript is not enabled. Script in "warntag" is to write the warning if javascript IS enabled, meaning alternate contents would have been overwritten. removeWarning function is to blank out "warntag". If as2 does not call this function, warning will stay up. (Beats trying to detect blockers that will later adapt and blocks you again anyway.) AS2 - Best put in the first frame so when swf is embeded, the first thing it'd do is to remove the warning. PS. if this is too off-topic, please let me know. I'll remove the post. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
