!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
02 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
03 |
< html xmlns = "http://www.w3.org/1999/xhtml" > |
05 |
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" /> |
06 |
< title >OFC-helloworld</ title > |
08 |
< script type = "text/javascript" src = "js/swfobject.js" ></ script > |
09 |
< script type = "text/javascript" > |
11 |
var params = {menu: "false",scale: "noScale",wmode:"opaque"}; |
12 |
swfobject.embedSWF("open-flash-chart.swf", "helloworld", "550px", "350px", |
13 |
"9.0.0", "http://www.flexrain.cn/js/expressInstall.swf", flashvars,params); |
18 |
< div id = "helloworld" ></ div > |
[代码] 第二种方法:原始的object标签
01 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
02 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
03 |
< html xmlns = "http://www.w3.org/1999/xhtml" > |
05 |
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" /> |
06 |
< title >OFC-helloworld</ title > |
10 |
< object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width = "550" height = "400" id = "myofc" > |
11 |
< param name = "movie" value = "open-flash-chart.swf" /> |
13 |
< object type = "application/x-shockwave-flash" data = "open-flash-chart.swf" width = "550" height = "400" > |
15 |
< a href = "http://www.adobe.com/go/getflashplayer" > |
16 |
< img src = "http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" |
17 |
alt = "Get Adobe Flash player" /> |
[代码] data-files/data1.txt
04 |
"type": "area_hollow", |
10 |
"tip": "September 2009 Search Rank<br>Rank 100 // 100" |
20 |
"bg_colour": "#ffffff", |
23 |
"grid-colour": "#eeeeee", |
35 |
"grid-colour": "#eeeeee", |
45 |
"background": "#fffbca" |
[代码] 使用方法
1 |
<script type= "text/javascript" > |
2 |
var flashvars = { "data-file" : "data-files/data1.txt" }; |
3 |
var params = {menu: "false" ,scale: "noScale" ,wmode: "opaque" }; |
4 |
swfobject.embedSWF( "open-flash-chart.swf" , "helloworld" , "550px" , "350px" , |
5 |
"9.0.0" , "http://www.flexrain.cn/js/expressInstall.swf" , flashvars,params); |