Make sure your source for your HTML file looks like this: <!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>Title of Page</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript"> swfobject.embedSWF("filename.swf", "myContent", "850", "575", "9.0.0", "expressInstall.swf"); </script> </head> <body> <div id="myContent"> <h1>This Site Uses Flash</h1> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gi f" alt="Get Adobe Flash player" /></a></p> </div> </body> </html>
The above code works for every browser. Make sure all your pathing is correct for each file (JavaScript and SWFs). -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of cs Sent: Wednesday, January 27, 2010 4:19 PM To: SWFObject Subject: Alternate content shows up while Flash exist in Safari & Chrome! Using swfobject.embedSWF. The alternate content shows up even when the Flash plays in Safari & Chrome. FF & IE don't display the alternate content when the Flash is not there. I read that having the alternate content in the div container used for the Flash object shows the alternate content when there's no Flash installed automatically. And it works for other browsers. Any idea why not Safari & Chrome? Thanks. -- 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. -- 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.
