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 and 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: and tags.
These two tags are required to display a Flash movie in different Internet browsers properly. The tag is used by Internet Explorer under Microsoft Windows and the 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 tag nested within the tag as shown in the example. ActiveX-enabled browsers will ignore the tag inside the tag. Netscape and old Microsoft browsers will not recognize the tag and will use only the tag to load the Macromedia Flash Player. ??"
結論:
標簽支持IE,標簽支持舊版本的IE和其他的瀏覽器(如FF、chrome等)。所以在寫頁面的時候最好是按上面代碼中的方式,將embed的內容嵌入到object標簽內,這樣就可以防止有的瀏覽器出現不兼容的情況了。
ps:為方遍測試,上面代碼中的多媒體文件請自行替換本地文件路徑及文件名。