<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
综合应用平台</title>
<script type="application/javascript">
//document.getElementById["mainFrame"].session["useridkkk"] = "中国人";
</script>
<script type="text/javascript">
var closed = false;
function onOff() {
if (closed ) //需要显示菜单时触发
{
alert("开");
closed = false;
//window.document.getElementById("hide").style.visibility='hidden';
//window.document.getElementById("show").style.visibility='visible';
var widthyy=window.screen.availWidth - 209;
top.window.document.getElementById("yyLeft").width = 200;
//top.window.document.getElementById("yyCenter").width = 9;
//top.window.document.getElementById("yyRight").width= widthyy;
}
else { //需要隐菜单时会触发
alert("关");
//document.getElementById("show").style.visibility='hidden';
//document.getElementById("hide").style.visibility='visible';
var widthyy=window.screen.availWidth - 10;
closed = true; //alert("关1 " + widthyy);
top.window.document.getElementById("yyLeft").width =1;//alert("关2 "+top.window.document.getElementById("yyLeft").width);
//top.window.document.getElementById("yyCenter").width =9;alert("关3 "+top.window.document.getElementById("yyCenter").width);
//top.window.document.getElementById("yyRight").width= widthyy;alert("关4 " + top.window.document.getElementById("yyRight").width);
//alert('');
}
}
</script>
</head>
<body style="margin: 0px; padding: 0px;overflow: hidden">
<div id="divBody" style="width:100%;height:100%;position:absolute;">
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" align="center" style="overflow: hidden" >
<!-- 顶部 -->
<tr height="74px" style="overflow: hidden" >
<td width="100%" colspan="3" style="overflow:hidden" >
<iframe src="http://www.baidu.com" name="topFrame" id="topFrame" width="100%" height="100%" scrolling = 'no'
style="overflow: hidden" frameborder="1"></iframe>
</td>
</tr>
<!-- 中间-->
<tr id="yyMiddle" >
<!--left-->
<td width='196px' height="100%" id = "yyLeft">
<iframe name="leftFrame" id="leftFrame" width="100%" height="100%" frameborder="1"
src="http://www.baidu.com"></iframe>
</td>
<!--center-->
<td width='9px' height='100%' id = 'yyCenter'>
<iframe src="bar.htm" id="bar" name="bar" width="100%" height="100%" frameborder="1" scrolling = 'no'>
</iframe>
</td>
<!--right-->
<td id="yyRight" height="100%">
<iframe name="mainFrame" id="mainFrame" src="http://www.baidu.com"
width="100%" height="100%" frameborder="0"></iframe>
</td>
<script type="text/javascript">
var widthyy=window.screen.width - 209;
//var heightyy = window.screen.height - 71;
window.document.getElementById("yyRight").width= widthyy;
window.document.getElementById("yyMiddle").height =heightyy;
</script>
</tr>
</table>
</div>
<input name="关" type="button" οnclick="onOff()" />
</body>
</html>