正文:
注意:此文章以及相关资源,仅供学习交流使用,如果商业应用,本站不承担任何后果
效果页面http://www.shareach.com/aa.htm
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
id="UrchinGraph3" align="center" height="225" width="350" />
<param name="allowScriptAccess" value="sameDomain"/>
<param name="movie" value="UrchinGraphMini.swf" />
<param name="quality" value="high"/>
<param name="bgcolor" value="#ffffff"/>
<param name="wmode" value="transparent"/>
<embed style="visibility: hidden ! important;" adblockframename="adblock-frame-n9"
adblockframedobject2="true" src="UrchinGraphMini.swf" quality="high" bgcolor="#ffffff"
name="UrchinGraph"
wmode="transparent" allowscriptaccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="ntitle=Sources&toggle=Show%20All|Hide%20All&vtitle=Visits&cnames=&datatype=20&rtitle=Visits by Source&fsize=0&gtypes=pie&total=1254&uloc=us|$|0|2&xdata=google\t901\n(direct)\t211\nyahoo\t84\ngoogle.co.id\t9\nmsn\t8\n" align="center" height="225" width="350" />
id="UrchinGraph3" align="center" height="225" width="350" />
<param name="allowScriptAccess" value="sameDomain"/>
<param name="movie" value="UrchinGraphMini.swf" />
<param name="quality" value="high"/>
<param name="bgcolor" value="#ffffff"/>
<param name="wmode" value="transparent"/>
<embed style="visibility: hidden ! important;" adblockframename="adblock-frame-n9"
adblockframedobject2="true" src="UrchinGraphMini.swf" quality="high" bgcolor="#ffffff"
name="UrchinGraph"
wmode="transparent" allowscriptaccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="ntitle=Sources&toggle=Show%20All|Hide%20All&vtitle=Visits&cnames=&datatype=20&rtitle=Visits by Source&fsize=0&gtypes=pie&total=1254&uloc=us|$|0|2&xdata=google\t901\n(direct)\t211\nyahoo\t84\ngoogle.co.id\t9\nmsn\t8\n" align="center" height="225" width="350" />
主要起作用的是flashvars这个参数:
IE的方式
<param name="flashvars" value=""/>
非 IE的方式
<embed flashvars="..data.."/>
flashvars参数里面的参数说明:
gtypes :
---line线形
---bar拄装图
---mline多线形
---pie饼图
---fun横斜拄
---hbar 纵向拄装图
xdata : 显示的数据, 格式是: 每行分割用\n;每列分隔用\t
toptitle : 图形顶部标题
rtitle: 图形子标题
ntitle: 水平标题
vtitle: 纵向标题
vtitle2: 纵向右边标题
cname: 列名
其静态页面看效果,查看动态页效果
类别: JS/HTML/CSS/XML
发布日期: 2007-5-21 10:18