嵌入 Flash - movie 和 src 参数
在此对象元素中,有一个名为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果你检查 W3Schools 中的 HTML tag ,你会发现你提供的语法就是所有浏览器都支持
if you check HTML tag in W3Schools , you will find the syntax you provided is the one supported by all browsers
此类集用于符合 w3c 标准。
当您插入 flash 嵌入内容时,Adobe(tm) DreamWeaver 会使用 param[@name='src']。
使用 Adobe(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
虽然这个问题的答案中已经列出了差异,但一般来说我不会担心这些差异。 我这么说只是因为我建议使用 swfobject。
这将为您处理您的
object
标记。 它还可以处理诸如 Flash Player 版本检测、播放器升级/下载以及在用户没有/不需要 Flash 时显示替代内容等事务。它非常容易使用,这是一个简单的示例:
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: