|
買賣力分析
");
document.write("");
document.write("");
document.write("");
$(document).ready(function(){
init();
var oCommonChart = new CommonChart(40, 'selectDiv', 0, 0);//筆數, div id, 市場別 0-上市 1-上櫃, 買賣筆數(0)/張數(1)
console.log(oCommonChart.getData('bsAnalysis'));
$("#trade").change(function(){
//var subTitle = $( "#trade option:selected" ).text();
var tradeInd = $( "#trade option:selected" ).index();
var bsMarkInd = $( "#bsMark option:selected" ).index();
console.log('市場別: '+tradeInd+', 筆/張: '+bsMarkInd);
//console.log(oCommonChart);
oCommonChart.changeData(tradeInd, bsMarkInd);
});
$("#bsMark").change(function(){
//var subTitle = $( "#trade option:selected" ).text();
var tradeInd = $( "#trade option:selected" ).index();
var bsMarkInd = $( "#bsMark option:selected" ).index();
console.log('市場別: '+tradeInd+', 筆/張: '+bsMarkInd);
//console.log(oCommonChart);
oCommonChart.changeData(tradeInd, bsMarkInd);
});
})
}else{
var obj = document.createElement("applet");
obj.setAttribute("width", "780");
obj.setAttribute("height", "400");
obj.setAttribute("name", "TestApplet");
obj.setAttribute("codebase", ".");
obj.setAttribute("code", "sysapplet.BuySellAnalysisApplet.class");
obj.setAttribute("archive", "BuySellAnalysis.jar");
obj.setAttribute("hspace", "0");
obj.setAttribute("vspace", "0");
obj.setAttribute("align", "middle");
var p1 = document.createElement("param");
p1.setAttribute("name", "configFileName");
p1.setAttribute("value", "config.properties");
obj.appendChild(p1);
divtd.appendChild(obj);
//document.body.appendChild(obj);
}
//-->
|
|