在页面上放置 swf 的正确方法

发布于 2024-10-27 13:41:46 字数 963 浏览 0 评论 0原文

我最近注意到我们网站上的 SWF 对象被下载了两次,因此我试图确定是否有更正确的方法来嵌入它们。我当前的代码是:

<object type="application/x-shockwave-flash" data="/movie.swf" width="635" height="350" class="ad">
  <param name="movie" value="/movie.swf" />
  <param value="high" name="quality">
  <param value="#FFFFFF" name="bgcolor">
  <param value="always" name="allowScriptAccess">
  <param value="clickTAG=http://www.google.com/" name="FlashVars">
  <param value="transparent" name="wmode">
</object>

查看一些 其他 问题答案在这里,这似乎是执行此操作的标准方法,但是将它们下载两次会给我的服务器带来不必要的压力。这是在我们的页面上嵌入 swf 的最佳方式吗?如果没有,更好的方法肯定会受到赞赏。

I recently noticed that SWF objects on our site are being downloaded twice, so I'm trying to determine if there's a more correct way to embed them. My current code is:

<object type="application/x-shockwave-flash" data="/movie.swf" width="635" height="350" class="ad">
  <param name="movie" value="/movie.swf" />
  <param value="high" name="quality">
  <param value="#FFFFFF" name="bgcolor">
  <param value="always" name="allowScriptAccess">
  <param value="clickTAG=http://www.google.com/" name="FlashVars">
  <param value="transparent" name="wmode">
</object>

Looking at some of the other questions and answers here on SO, it seems that this is the standard way of doing this, but having them downloaded twice is putting unnecessary strain on my servers. Is this the best way to embed a swf on our pages? If not, a better method would definitely be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

似狗非友 2024-11-03 13:41:46

网络博客网站 Alistapart 有一篇很棒的文章“Flash Satay”,其中详细介绍了所有不同闪存嵌入技术的问题。

他们的结论是,您的方法是实现这一目标的最简单方法。

The web blog site Alistapart has a great article "Flash Satay" which goes into great detail on all the issues with different flash embedding techniques.

They conclude that your method is the simplest way to achieve it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文