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.

Related posts:

  1. Multi-Row Carousel and Image Loader with JQuery A recent project I've been working on involved a portfolio...

Related posts brought to you by Yet Another Related Posts Plugin.

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.

Comment Form

Featured Sponsors


  • Michael: You can use get_header(2) in your case. The filename of your custom header has to be header-2.php. The problem with include(your_file.php) is, all
  • cliff: hi wonder if you can help me, pls i designed www.kouga.mobi using dreamweaver CS3 and now want to make the phonenumbers into links so that if you
  • jerey: how do i rewrite this because it tried RewriteEngine on #Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FIL

About


Advertisements