框架当中收缩展开菜单
--收缩展开菜单
function HideBar() {
var img = document.getElementById("imgHide");
if (img.title == '收起左侧菜单') {
img.src = "../images/bar1.jpg";
img.title = '显示左侧菜单';
parent.document.getElementsByTagName('FRAMESET')[1].cols = "0,11,*";
}
else {
img.title = '收起左侧菜单';
img.src = "../images/bar.jpg";
parent.document.getElementsByTagName('FRAMESET')[1].cols = "192,11,*";
}
}
<img id="imgHide" src="../images/bar.jpg" width="11" onclick='HideBar()' title="收起左侧菜单" style ="cursor :pointer " />
<img id="btnHide1" src="../images/bar1.jpg" width="11" style="display: none" />