1

我需要帮助将 .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>

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

4

1 回答 1

0

我刚刚尝试使用 Adob​​e 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,打开html后就开始播放swf动画。我也试过你的代码:

<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>

它也工作得很好,除了 Internet Explorer 显示的 swf 动画有点小,但它工作。也许你应该检查你的 Flash 播放器插件。

于 2013-10-07T11:23:11.570 回答