Sorry if the subject makes it look like it's been asked before, but here goes:
I've got a page that uses a Flash movie as a background, with an iframe stacked on top of it. The Flash passes instructions to the iframe, which loads new pages. I've also got alternate content, of course. Here's the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Nassau</title> <script src="swfobject.js" type="text/javascript"></script> <script type="text/javascript"> swfobject.embedSWF("flashmovie.swf", "flashHolder", "100%", "100%", "10,0,0"); var defaultPageHref = "http://www.nassau.se/content/index.php/site/ index/"; window.onload = function() { reloadIframe(defaultPageHref); } // function that changes iframe source // src - new iframe href function reloadIframe(src) { window.frames['myIframe'].location.href = src; } </script> </head> <body> <div id="flashHolder" style="width:100%;height:100%;margin:0;padding: 0;"><table width="100%" bgcolor="#acbcbe" marginheight="0" marginwidth="0" marginleft="0" margintop="0" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="middle" align="center"> <img src="nonflash.gif" width="400" height="400" border="0" usemap="#Map"></td> </tr> </table> </td> </tr> </table> <map name="Map"> <area shape="rect" coords="67,208,150,236" href="http:// get.adobe.com/flashplayer/" target="_blank"> <area shape="rect" coords="174,208,335,236" href="flash.html"> <area shape="rect" coords="156,281,247,295" href="mailto:[email protected]"> </map></div> <div id="apDiv1"><p align="center"> <iframe width="900" height="530" name="myIframe" frameborder="0"></ iframe></p></div> <script src="http://www.google-analytics.com/urchin.js" type="text/ javascript"> </script> <script type="text/javascript"> _uacct = "UA-376008-1"; urchinTracker(); </script> </body> </html> Now, this does work right in every browser, except for Firefox for some reason, where the Flash won't seem to load at all. Anyone got any ideas to throw around? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
