完整的浏览器闪存可在Safari 5中运行,但不适用于Firefox 3.6

时间:2010-12-07 05:27:40

标签: javascript flash debugging cross-browser swfobject

任何人都可以告诉我为什么这个标记在Safari中运行正常,但在Firefox中没有?

这应该加载一个丑陋的蓝色占位符(我在safari中获得)但在Firefox中,swfobject只是给了我替代内容。

http://www.johndierks.com/stackoverflow/preloader.html

感谢您的帮助。

这是我从SwfObject的谷歌代码网站获得的参考代码。

<!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>SWFObject 2 full browser flash</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <style type="text/css" media="screen">
            html, body, #content    { height:100%; }
            body                    { margin:0; padding:0; overflow:hidden; }
            #altContent             { /* style alt content */ }
        </style>        
        <script type="text/javascript" src="swfobject.js"></script>
        <script type="text/javascript">
        swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
        </script>

    </head>
    <body>
        <div id="content">  
            <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
                <param name="movie" value="ccholidaypreloader.swf" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="test6.swf" width="100%" height="100%">
                <!--<![endif]-->
                <div id="altContent">

                    <h1>Alternative content</h1>
                    <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
                </div>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>
        </div>

    </body>
</html>

1 个答案:

答案 0 :(得分:1)

未找到404 http://www.johndierks.com/stackoverflow/test6.swf (来自Firebug)

相关问题