User login
Recent blog posts
- Poor server performance when runing a Drupal site & Flash
- Adding files that begin with a hyphen or dash to Subversion (SVN)
- XML Sitemap Quirks and Module Weight
- May Florida Drupal Meeting
- Firefox 2.x + Mac SWFObject Workaround (White Screen Fix)
- Step by Step guilde to installing the Drupal module Google Analytics
- Drupal Hack Attacks
- Step by step guide to installing the Drupal module Find URL Alias
- Step by Step guide to installing the Drupal module Global Redirect
- Drupal Module: SEO Checklist
Firefox 2.x + Mac SWFObject Workaround (White Screen Fix)
I've been using FF3 for a while now so I didn't notice this issue but as soon as I loaded FF2 it was obvious. Firefox has issues when you dynamicly load flash through SWF object on a Mac. In FF2 with a Mac all you'll see is a white box that requires you to click on it... then everything will look correct. If you don't want your users to have to click a flash object just to have the page look the way you intended then try the code below.
To fix it you just need to force a quick little behind the scenes redraw in javascript:
swfobject.addLoadEvent(forceRedraw);
function forceRedraw() {
document.getElementById("yourflashobjectidhere").style.display = "block";
}
Solution by bobbyvandersluis at http://code.google.com/p/swfobject/issues/detail?id=53&can=1 comment #7
- Andrew M Riley's blog
- Login or register to post comments