scriptygoddess

16 Dec, 2009

swfobject – flash doesn't load in Firefox

Posted by: Jennifer In: Flash|Javascript|Lessons learned

Ran into a bizarre problem today using swfobject. A lot of wasted time, but I'll give you the short story / solution.

I'm not sure of what other factors played a role (the fact that the element was in a absolute positioned container, or that the immediate container to the flash element was in a float) but I had the call to the swfobject javascript in the BODY tags of the html (not within the head tags). This was apparently causing Firefox to not display the flash. Simply moving the swfobject javascript code within the head tags of the html instantly fixed the problem.

I know I've used swfobject inside the body before – so I'm sure there's something else that contributed to the problem.

1 Response to "swfobject – flash doesn't load in Firefox"

1 | Dave Grant Urban

March 6th, 2010 at 7:26 am

Avatar

I noticed the same thing; no display in FF if swfobject is in the body. Unfortunately, I can't get to the head section because I use GoDaddy's Quick Shopping cart and I have access to the body html only. This sucks.

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements