`

<OBJECT> 和<EMBED>标签的区别

阅读更多
<html>
   <head>
      <title>My First FusionCharts</title>
   </head>
   <body bgcolor="#ffffff">
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="300" id="Column3D" >
         <param name="movie" value="../FusionCharts/Column3D.swf" />
         <param name="FlashVars" value="&dataURL=Data.xml">
         <param name="quality" value="high" />
         <embed src="../FusionCharts/Column3D.swf" flashVars="&dataURL=Data.xml" quality="high" width="900" height="300" name="Column3D" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>

</body>
</html>
Save this file as Chart.html under MyFirstChart folder.

The code in bold above is the actual code that you need to place in your page to embed a FusionCharts chart.

In the above code, we've

  • used <OBJECT> and <EMBED> tags to embed the 3D Column Chart (Column3D.swf) within the HTML page.
  • used &dataUrl=Data.xml under FlashVars parameter to indicate the source of data to chart – Data.xml in this case. This method of indicating data is referred to as dataURL method of providing data.
  • specified chart width as 900 and chart height as 300.
 

To display a Flash movie correctly in a browser, HTML page should contain specific tags that specify the Flash movie file to be opened and played. There are two tags which are intended for it: <OBJECT> and <EMBED> tags.

These two tags are required to display a Flash movie in different Internet browsers properly. The <OBJECT> tag is used by Internet Explorer under Microsoft Windows and the <EMBED> tag is used by Netscape Navigator under Microsoft Windows or Mac OS. Each of these two tags acts in the same way, however using only one tag may cause incompatibility of one of the browsers. To ensure that most browsers will play your Flash movies, you should place the <EMBED> tag nested within the <OBJECT> tag as shown in the example. ActiveX-enabled browsers will ignore the <EMBED> tag inside the <OBJECT> tag. Netscape and old Microsoft browsers will not recognize the <OBJECT> tag and will use only the <EMBED> tag to load the Macromedia Flash Player.

<OBJECT> 标签支持IE,<EMBED>标签支持旧版本的IE和其他的浏览器加载flash播放器。。。。

分享到:
评论

相关推荐

    Html5中文手册(程序员必备手册)

    29、&lt;embed&gt; 定义外部交互内容或插件。 30、&lt;fieldset&gt; 可将表单内的相关元素分组。 31、&lt;figcaption&gt; 定义 figure 元素的标题。 32、&lt;figure&gt; 定义媒介内容的分组。 33、&lt;footer&gt; 定义section/page的页脚。 34、...

    jQuery完全实例.rar

    &lt;p&gt;one&lt;/p&gt; &lt;div&gt;&lt;p&gt;two&lt;/p&gt;&lt;/div&gt; &lt;p&gt;three&lt;/p&gt; jQuery 代码: $("div &gt; p"); 结果: [ &lt;p&gt;two&lt;/p&gt; ] -------------------------------------------------------------------------------- 在文档的第一个表单...

    html标签之Object和EMBED标签详解

    object 的初衷是取代 img 和 applet 元素。不过由于漏洞以及缺乏浏览器支持,这一点并未实现。 浏览器的对象支持有赖于对象类型。不幸的是,主流浏览器都使用不同的代码来加载相同的对象类型。 而幸运的是,object...

    HTML嵌入WMP 兼容chrome和ie的写法详细介绍

    其实相应的写法有很多,比较通用的就是object + embed ,但是我在使用过程中,在xp sp3 下,embed标签标记为x-mplayer2,但是strechToFit无效了

    显示flash内容时用的OBJECT和EMBED标签区别介绍

    要在网页中正常显示flash内容,那么页面中必须要有指定flash路径的标签也就是OBJECT和EMBED标签,下面为大家介绍下两者的区别

    网页FLASH播放器代码

    &lt;/object&gt; &lt;table style="width:550px" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tr&gt; &lt;td style="vertical-align:middle"&gt; &lt;table style="border:1px solid #333333;width:90%;height:5px" cellpadding...

    Web-前端html+css从入门到精通 118. embed标签与object标签.zip

    Web-前端html+css从入门到精通 118. embed标签与object标签.zip

    CKEditor 4.10.1 中文版.zip

    CKEditor是新一代的FCKeditor,是...修正:从编辑器中删除以“object”,“embed”,“param”为前缀的启用了ACF的自定义元素内容。API更改:添加了[`editor.plugins.detectConflict()`]方法查找提供的插件之间的冲突。

    HTML5 通过Vedio标签实现视频循环播放的示例代码

    embed&gt;标签 &lt;embed&gt; 标签的作用是在 HTML页面中嵌入多媒体元素 &lt;embed src="1.swf"width="400"&gt; &lt;object&gt; 标签的作用是在 HTML页面中...在HTML5后,播放网页视频就简单多了,一个&lt;vedio&gt;&lt;/vedio&gt;

    eagerflash幻灯片标签

    document.write('&lt;/object&gt;'); //--&gt; &lt;/script&gt; 3、在首页调用 调用格式如{$MY_eAgerFlash(5,1001,450,320)} 调用数量为5、频道1001、宽450,高320。 4、欢迎大家访问我的网站:http://www.eAger.nAme 谢谢大家! ...

    ie6下embed标签不能播放视频问题解决方法

    在我自己本机的ie8上能正常播放视频的程序(ie6也可以),放用户的电脑上就是不能正常播放,后来将embed换成object,问题得以解决

    flash首页图片.rar

    &lt;!--#include file="conn.asp"--&gt; &lt;% sql="select top 6 * from news order by id desc" set rs=Server.CreateObject("adodb.recordset") rs.open sql,db,1,1 ... document.write('&lt;/object&gt;'); &lt;/script&gt;

    embed-pdf-viewer:通过oEmbed或Gutenberg块从媒体库或其他地方嵌入PDF。 WordPress插件

    嵌入PDF查看器 贡献者:Afragen,AKIRK 标签:pdf,嵌入,显示,查看器,块... 非常感谢使Embed PDF Viewer与新的块编辑器兼容。 欢迎对develop分支提出拉取请求。 屏幕截图 嵌入PDF Viewer块 选择PDF PDF块和属性

    将SVG图引入到HTML页面的实现

    下来介绍一下这是那种方法。 第一种: 使用&lt;embed&gt;标签:   这个是官方推荐的用法,但是这个官方是Adobe官方,不是W3C官方,现在的HTML标准里还没有这个标签。 ...embed src=example.svg ...object&gt;标签:   这

    basic-pdf-embed-wp-plugin:一个 WordPress 插件,使用它可以轻松显示 PDF 文件标签

    基本-pdf-embed-wp-plugin 一个 WordPress 插件,可以使用 &lt;object&gt; 标签轻松显示 PDF 文件

    dreamweaver的各种组件

    FontTagKiller 将页面中所有的&lt;font&gt;标记清除 jsonbrowser 根据不同的浏览器选择不同的js代码 Remove lines from maps IE4会在可点图激活时候显示虚线框,该命令移走这个框 Tag killer 将指定的标签从页面中清除 ...

    jQuery多媒体插件jQuery Media Plugin使用详解

    它根据当前的脚本配置,自动将a标签替换成div,并生成object, embed甚至是iframe代码,至于生成object还是embed,jQuery Media会根据当前平台自动判别,因此兼容性方面非常出色。下面这段代码是jQuery Media生成后的...

Global site tag (gtag.js) - Google Analytics