- 注册时间
- 2012-6-22
- 最后登录
- 2018-4-2
- 阅读权限
- 10
- 积分
- 149
- 精华
- 0
- 帖子
- 46
|
本帖最后由 zskeycom 于 2012-7-17 11:57 编辑
- <script src="../../scripts/boot.js" type="text/javascript"></script>
- <script src="../../chart/js/swfobject.js" type="text/javascript"></script>
- <div id="win1" class="mini-window" title="派工单概况" style="width:600px;height:460px;"
- showToolbar="false" showFooter="true" showModal="true" allowResize="false"
- >
- <div style="height:20px;">
- <a href='#' onclick="swfurl('day')">今天</a>
- </div>
- <div id="chartContainer"></div>
- </div>
- <script type="text/javascript">
- mini.parse();
- function swfurl(sd){
- switch (sd){
- case 'day':
- o='../server/chart_json.php?m=bill_chart_list&a=123';
- break;
- default:
- o='../server/chart_json.php?m=bill_chart_list';
- break;
- }
- //alert (o);//这里可以弹出不同的网址
- return o;
- }
- function buildChart(){
- swfobject.embedSWF("../chart/open-flash-chart.swf", chartContainerId, "588", "400", "9.0.0", "../chart/expressInstall.swf",
- { "data-file":swfurl() }, { wmode: "Opaque" });
- }
- var chartContainerId = "chartContainer";
- function showChartWindow() {
- var win = mini.get("win1");
- win.show();
- buildChart();
- }
- showChartWindow();
- }
- //地址可以改变了,PHP的服务端没有问题,是可以显示这个饼图的!加了参数的地址后 怎么重新刷新WIN并加载到SWF上,请赐教~!
复制代码
|
|