这是index.htm doc应该运行一个.swf文件,页面只是加载而没有任何反应,flash不播放,任何帮助?

时间:2011-04-11 11:44:55

标签: html xml flash

<html>  
    <head>    
        <title>My Website </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">
        var flashvars = {};
        var params = {allowFullScreen:true};
        var attributes = {};
        swfobject.embedSWF("preview.swf", "nav", "100%", "100%", "9.0.0", "expressInstall.swf",flashvars,params,attributes);
        </script>
        <style>
        body{
            margin-left:0px;
            margin-top:0px;
            margin-right:0px;
            margin-bottom:0px;
        }   
        </style>
    </head>  
    <body>

        <div id="content" align="center">
                    <div id="nav">
                            <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>



    </body>
</html>

2 个答案:

答案 0 :(得分:0)

您是否已添加指向SwfObject JS文件的链接

您是否也将swfobject.js文件上传到服务器?

答案 1 :(得分:0)

尝试在导航器上设置最小高度:

div#nav { min-height:100px; }