从左图变为有图,并实现将左图上面的信息隐藏。
<img src="../images/up.gif" border="0" onclick="javascript:DisShowDataMain(this);" id="img4" />
function DisShowDataMain(imgObj) {
var obj2 = document.getElementById("queryMain");
if (obj2.style.display == "none") {
obj2.style.display = "block";
imgObj.src = "../images/up.gif";
}
else {
obj2.style.display = "none";
imgObj.src = "../images/down.gif";
}
}