在页面上放置 swf 的正确方法
我最近注意到我们网站上的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
网络博客网站 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.