Html 如何在我的网站上嵌入 Flash 对象?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7538286/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to embed a flash object on my website?
提问by Madara's Ghost
Well, I must say this is embarrassing to ask, but to my defense I'll say that throughout my years of web development I've never encountered a case where embedding flash was absolutely necessary.
好吧,我必须说问这个问题很尴尬,但为了我的辩护,我会说,在我多年的 Web 开发中,我从未遇到过绝对需要嵌入 Flash 的情况。
The Question
问题
- Simple, how do I embed a flash object of any kind (*.swf or if there any other options, them too) to my website?
- 很简单,我如何将任何类型的 Flash 对象(*.swf 或如果有任何其他选项,它们也是)嵌入到我的网站?
Some Points
一些要点
- I don't need the code, I already have that, I just don't really understand it.
- I'm looking for a good explanation on how to use the
<embed>
or<object>
elements. - I've been searching around but couldn't find a clear explanation, even in the specs.
- 我不需要代码,我已经有了,我只是不太明白。
- 我正在寻找关于如何使用
<embed>
or<object>
元素的很好的解释。 - 我一直在四处寻找,但即使在规范中也找不到明确的解释。
I'd award any good answer with an upvote, a cookie, and an accepted answer to the best :)
我会通过投票、cookie 和公认的最佳答案来奖励任何好的答案:)
采纳答案by magritte
Definitions:
定义:
http://www.w3.org/wiki/HTML/Elements/embed
http://www.w3.org/wiki/HTML/Elements/embed
http://www.w3.org/wiki/HTML/Elements/object
http://www.w3.org/wiki/HTML/Elements/object
Explanation on how to embed a flash object from Adobe:
关于如何从 Adobe 嵌入 Flash 对象的说明:
http://kb2.adobe.com/cps/415/tn_4150.html
http://kb2.adobe.com/cps/415/tn_4150.html
"The HTML OBJECT tag directs the browser to load Adobe Flash Player and then use it to play your SWF file."
“HTML OBJECT 标记指示浏览器加载 Adobe Flash Player,然后使用它来播放您的 SWF 文件。”
回答by Faruk KAHRAMAN
Change "YOURFILENAMEHERE.swf" with your .swf file name.
使用您的 .swf 文件名更改“YOURFILENAMEHERE.swf”。
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="320" HEIGHT="240" id="Yourfilename" ALIGN="">
<PARAM NAME=movie VALUE="YOURFILENAMEHERE.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#333399>
<EMBED src="Yourfilename.swf" quality=high bgcolor=#333399 WIDTH="320" HEIGHT="240" NAME="Yourfilename" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>