...
|
...
|
@@ -153,11 +153,16 @@ function searchType(ip, children, nodeId){ |
|
|
|
|
|
//将原来选中的节点的背景颜色去掉
|
|
|
if(selectedNodeId != null) {
|
|
|
document.getElementById(selectedNodeId).style.backgroundColor="";
|
|
|
var nodeStyle = document.getElementById(selectedNodeId).style;
|
|
|
nodeStyle.backgroundColor="";
|
|
|
nodeStyle.color="black";
|
|
|
//document.getElementById(selectedNodeId).style.backgroundColor="";
|
|
|
}
|
|
|
|
|
|
//给选中的节点添加背景颜色
|
|
|
document.getElementById(nodeId).style.backgroundColor="#3392e3";
|
|
|
var nodeStyle = document.getElementById(nodeId).style;
|
|
|
nodeStyle.backgroundColor = "#3392e3";
|
|
|
nodeStyle.color = "#ffffff";
|
|
|
selectedNodeId = nodeId;
|
|
|
|
|
|
$("#detailTable").hide();
|
...
|
...
|
|