Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html .swf文件未显示在网站上_Html_Flash - Fatal编程技术网

Html .swf文件未显示在网站上

Html .swf文件未显示在网站上,html,flash,Html,Flash,我需要帮助嵌入一个.swf文件到我的网站。我尝试过各种代码组合。这是我目前拥有的 <div class="article_top_img"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" > <param name="movie" value="myfile.swf"> <param name="quality" valu

我需要帮助嵌入一个.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>

目前,它只是简单地显示视频的轮廓。

我刚刚尝试使用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 Chromeversion 30.0.1599.66 m、Mozilla Firefox 24.0版、Internet Explorer 8版和OperaVersion 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>

它也工作得很好,除了InternetExplorer显示的swf动画稍微小一点,但它工作得很好。也许你应该检查一下你的flash播放器插件

谢谢我的朋友,但我设法解决了这个问题,用我从客户那里收到的更新版本替换了.swf文件,它成功了。显然,我使用的原始版本可能已经损坏