function oniframe(obj){
if(obj==1){
document.getElementById("kline").src="http://data.stock.hexun.com/jiashi/stock_1.htm";
document.getElementById("1").style.backgroundColor="#900";
document.getElementById("2").style.backgroundColor="#999";
document.getElementById("3").style.backgroundColor="#999";
document.getElementById("4").style.backgroundColor="#999";
}
else if(obj==2){
document.getElementById("kline").src="http://data.stock.hexun.com/jiashi/bond_1.htm";
document.getElementById("1").style.backgroundColor="#999";
document.getElementById("2").style.backgroundColor="#900";
document.getElementById("3").style.backgroundColor="#999";
document.getElementById("4").style.backgroundColor="#999";
}
else if(obj==3){
document.getElementById("kline").src="http://data.stock.hexun.com/jiashi/forex_1.htm";
document.getElementById("1").style.backgroundColor="#999";
document.getElementById("2").style.backgroundColor="#999";
document.getElementById("3").style.backgroundColor="#900";
document.getElementById("4").style.backgroundColor="#999";
}
else if(obj==4){
document.getElementById("kline").src="http://data.stock.hexun.com/jiashi/licai_1.htm";
document.getElementById("1").style.backgroundColor="#999";
document.getElementById("2").style.backgroundColor="#999";
document.getElementById("3").style.backgroundColor="#999";
document.getElementById("4").style.backgroundColor="#900";
}
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载