嵌入 Flash - movie 和 src 参数

发布于 2024-07-26 10:23:51 字数 598 浏览 5 评论 0原文

在此对象元素中,有一个名为 param[@name = 'movie'] 的子元素,

    <object type="application/x-shockwave-flash" width="300" height="324" data="flashlet.swf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
        <param name="movie" value="flashlet.swf">
        <param name="swliveconnect" value="true">
        <param name="allowfullscreen" value="true">
        <param name="FlashVars" value="id=120231">
    </object>

我见过其他对象元素示例,其中包含 param[@name = 'src'] 而不是 name=movie。

那么,这里有谁知道两者之间的区别吗?

感谢您的回答,

问候鲍勃

In this object element there is a child element called param[@name = 'movie']

    <object type="application/x-shockwave-flash" width="300" height="324" data="flashlet.swf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
        <param name="movie" value="flashlet.swf">
        <param name="swliveconnect" value="true">
        <param name="allowfullscreen" value="true">
        <param name="FlashVars" value="id=120231">
    </object>

I have seen other object element examples which has param[@name = 'src'] instead of name=movie.

So, does anyone here knows the difference between the two?

Thanks for answers,

regards bob

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

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

发布评论

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

评论(3

我乃一代侩神 2024-08-02 10:23:51

如果你检查 W3Schools 中的 HTML tag ,你会发现你提供的语法就是所有浏览器都支持

if you check HTML tag in W3Schools , you will find the syntax you provided is the one supported by all browsers

乞讨 2024-08-02 10:23:51

此类集用于符合 w3c 标准。
当您插入 flash 嵌入内容时,Adobe(tm) DreamWeaver 会使用 param[@name='src']。
使用 Adob​​e(tm) DreamWeaver 提供的对象有一些不好的地方: 它不符合 w3c 标准,而您发布的对象则符合 w3c 标准。
不幸的是,如果您使用符合 w3c 的标签,则应该遵循 http:// www.alistapart.com/articles/flashsatay 在 IE 上工作

This kind of set is used for w3c compliant.
The use of param[@name='src'] is given by Adobe(tm) DreamWeaver when you insert flash-embed content.
The use of the object given by Adobe(tm) DreamWeaver has some bad things: It isn't w3c compliant, and the one you've posted is w3c compliant.
Unfortunately, if you're using the w3c compliant tag, you should follow the flash satay technique from http://www.alistapart.com/articles/flashsatay to work on IE

樱花落人离去 2024-08-02 10:23:51

虽然这个问题的答案中已经列出了差异,但一般来说我不会担心这些差异。 我这么说只是因为我建议使用 swfobject

这将为您处理您的 object 标记。 它还可以处理诸如 Flash Player 版本检测、播放器升级/下载以及在用户没有/不需要 Flash 时显示替代内容等事务。

它非常容易使用,这是一个简单的示例:

swfobject.embedSWF("myFlashContent.swf", "myContent", "300", "120", "9", "expressInstall.swf", null, null, null, alertStatus);

While the difference has been listed already in the answers to this question, in general I would tend not to worry about the differences. I say this only because I recommend using swfobject.

This will take care of your object tag for you. As well it handles things like Flash Player version detection, player upgrades/downloads, and displaying alternative content if the user does not have/want Flash.

It's very easy to use, here is a simple sample:

swfobject.embedSWF("myFlashContent.swf", "myContent", "300", "120", "9", "expressInstall.swf", null, null, null, alertStatus);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文