Firefox 3 and Mac: Solution to Vanishing Content
April 12th, 2009
Ever since Firefox 3 came out there has been a problem on Macs where chunks/regions of the the displayed dcr file would would just “vanish” and show the background color of the html page you were viewing. [Note: With FF 3.0.1 I would rarely see this on a PC as well.] On Direct-L Valentin posted a possible solution that could be used to deal with this problem by adding some javascript to the html page.
You can see the code that was used below, read the entire thread (it is a long thread), and see it in action here.
HTML code that helps to properly display Shockwave-content on Macs that are using Firefox 3.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>FF3 mac sw bug fix</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script type="text/javascript"> <!-- function init(){ var isFFMac=(navigator.platform.indexOf('Mac')>-1&&navigator.userAgent.indexOf('Firefox')>-1); if(isFFMac){ var sw=document.getElementById('sw'); sw.onmousedown=function(){return false}; sw.data=sw.data; } } //--> </script> </head> <body onload="init()">
<div> <!--[if IE]> <object classid="clsid:233C1507-6A77-46A4-9443-F871F945D258" width="320" height="240"> <param name="src" value="myFileName.dcr" /> <![endif]--> <!--[if !IE]>--> <object id="sw" type="application/x-director" data="myFileName.dcr" width="320" height="240"> <!--<![endif]--> <param name="PlayerVersion" value="11" />
</object> </div>
<script type="text/javascript">document.write('<'+'div style="color:green">JAVASCRIPT IS ACTIVATED!<'+'/div>');</script> <noscript><div style="color:red">YOU DON'T HAVE JAVASCRIPT ACTIVATED!</div></noscript> </body> </html>
Update (July 20, 2009). Note: Using the method has proven to have problems with editable text members that are displayed in the content. So as of now, nothing seems to work reliably. Firefox 3.5.1 is now the current release, and it continues to have the same problem. Adobe has stated that FF is not included on the list of approved Mac browsers.
Entry Filed under: Quick answer,Real-world Examples,Shockwave
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed