0

我想在 wordpress 中包含我的 flash。我在 html 中有一个代码。但我不知道如何包含以及应该在哪里放置“.swf”文件和 js 文件。请帮我

<div class="banner_flash">
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="358" height="180">
  <param name="movie" value="swf/flash1.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="opaque" />
  <param name="wmode" value="transparent" />
  <param name="swfversion" value="6.0.65.0" />
  <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="swf/flash1.swf" width="358" height="180">
    <![endif]<param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="swfversion" value="6.0.65.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>
4

2 回答 2

0

这假设

  • 您的域名是http://www.example.com
  • 您的 Flash 文件夹都在一个名为myflashfiles
    • 例如,里面myflashfiles是一个名为 的文件夹swf,而该文件夹内是一个名为flash1.swf

将文件夹上传myflashfiles到您的“根目录”——这是您安装 Wordpress 的目录。该目录中应该已经至少有 3 个其他目录:

  • wp-管理员
  • wp-内容
  • wp-包括

您现在应该可以去http://www.example.com/myflashfiles/swf/flash1.swf查看您的文件出现了。

现在,将您的代码更改为:

<div class="banner_flash">
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="358" height="180">
  <param name="movie" value="/myflashfiles/swf/flash1.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="opaque" />
  <param name="wmode" value="transparent" />
  <param name="swfversion" value="6.0.65.0" />
  <param name="expressinstall" value="/myflashfiles/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="/myflashfiles/swf/flash1.swf" width="358" height="180">
    <![endif]<param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="swfversion" value="6.0.65.0" /><param name="expressinstall" value="/myflashfiles/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>

HTH ... :)

于 2013-09-28T07:13:43.913 回答
0

Flash 正在慢慢消失,不再被移动设备支持。因此,我建议您将来研究 html5 替代品,例如视频和画布标签。

但是,我知道有时闪光灯是一种邪恶的东西。我建议您使用 Wordpress 插件网站上提供的插件之一。这看起来可能符合要求: http ://wordpress.org/plugins/kimili-flash-embed/或http://wordpress.org/plugins/top-flash-embed/

于 2013-09-28T07:02:43.233 回答