Default.aspx页面代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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 runat="server">
<title>无标题页</title>
</head>
<frameset rows="80,*" cols="*" frameborder="0" border="0" framespacing="0">
<frame src="top.aspx" name="topFrame" scrolling="NO" noresize >
<frameset rows="*" cols="168,*" framespacing="0" frameborder="NO" border="0" id=oa_frame><!--这里的id名称要与menuswitch.aspx页面的oa_frame对应-->
<frame src="left.aspx" name="leftFrame" scrolling="auto" MARGINWIDTH=0 MARGINHEIGHT=0 noresize>
<frame name=middleframe src='menuswitch.aspx' scrolling='NO' frameborder='0' noresize>
<frame src="main.aspx" name="mainFrame">
</frameset>
</frameset>
<body>
</body>
</html>
menuswitch.aspx页面代码:
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="Css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style3 {FONT-SIZE: 12px
}
.style1 {color: #FFFFFF}
-->
</style>
<script>
function oa_tool(){
if(window.parent.oa_frame.cols=="0,8,*"){
frameshow.src="images/index_06.jpg";
oa_tree.title="隐藏工具栏"
window.parent.oa_frame.cols="137,8,*";
}
else{
frameshow.src="images/index_07.jpg";
oa_tree.title="显示工具栏"
window.parent.oa_frame.cols="0,8,*";}
}
</script>
<table height="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td width="8" bgcolor="#C0D5F4"> <div id=oa_tree onclick="oa_tool();" title=隐藏工具栏><a href="#"><img id=frameshow src="images/index_06.jpg" width="8" height="50" border="0"></a></div></td></tr></table>