.swf文件未在网站上显示

时间:2013-10-07 10:48:47

标签: html5 flash

我需要帮助将.swf文件嵌入到我的网站上。我尝试了各种代码组合。这就是我现在所拥有的。

<div class="article_top_img">
     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" >
            <param name="movie" value="myfile.swf">
            <param name="quality" value="high">
            <param name="wmode" value="opaque">
      <embed src="myfile.swf" quality="high" wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="310"></embed>
    </object>
</div>

目前它只是显示视频的轮廓。

1 个答案:

答案 0 :(得分:0)

我刚刚尝试使用Adobe Dreamweaver应用程序将swf文件嵌入到HTML文件中。 swf文件的名称是t0.swf,它位于桌面上。它生成了这个代码块:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400" id="FlashID" title="swf file">
  <param name="movie" value="../Desktop/t0.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="opaque" />
  <param name="swfversion" value="7.0.70.0" />
  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
  <param name="expressinstall" value="Scripts/expressInstall.swf" />
  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
  <!--[if !IE]>-->
  <object type="application/x-shockwave-flash" data="../Desktop/t0.swf" width="550" height="400">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="7.0.70.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
      <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" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
  </object>
  <!--<![endif]-->
</object>

我尝试使用Google Chrome(版本30.0.1599.66 m),Mozilla Firefox(版本24.0),Internet Explorer(版本8)和Opera(版本11.51)查看此html文件。他们都打开了html很好,swf动画在打开html后就开始播放了。我也试过你的代码:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" >
        <param name="movie" value="../Desktop/t0.swf">
        <param name="quality" value="high">
        <param name="wmode" value="opaque">
  <embed src="../Desktop/t0.swf" quality="high" wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="310"></embed>
</object>

它也运行良好,除了互联网资源管理器显示swf动画稍微小一点,但它工作。也许你应该检查一下你的flash播放器插件。