日期:2014-05-20  浏览次数:20406 次

在框架中怎样做得折叠、展开左边框架??
一个网页分成左、右两个框架,怎样做得折叠、展开左边框架??

------解决方案--------------------
Main.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN ">
<html>
<head>
<META HTTP-EQUIV= "Content-Type " CONTENT= "text/html; charset=gb2312 ">
<title> .:LTP.Net.SystemFramework:.系统管理 </title>
<meta name= "GENERATOR " content= "Microsoft Visual Studio .NET 7.1 ">
<meta content= "http://schemas.microsoft.com/intellisense/ie5 " name= "vs_targetSchema ">
</head>
<frameset rows= "102,* " frameborder= "NO " border= "0 " framespacing= "0 " name= "topset ">
<frame name= "topFrame " scrolling= "NO " noresize src= "Top.aspx ">
<frameset rows= "* " cols= "204,* " framespacing= "0 " frameborder= "no " border= "0 " name= "middleset ">
<frame name= "leftFrame " noresize src= "left.aspx ">
<frameset rows= "* " cols= "5,* " framespacing= "0 " frameborder= "NO " border= "0 ">
<frame src= "spliter.aspx " name= "spliterFrame " scrolling= "NO " noresize>
<frame name= "mainFrame " src= "Main.aspx ">
</frameset>
</frameset>
</frameset>
<noframes>
<body bgcolor= "#FFFFFF " text= "#000000 ">
</body>
</noframes>
</html>


Top.aspx为顶部页
left.aspx为左边菜单页
spliter.aspx为控制页(控制left.aspx)
Main.aspx为默认内容页


spliter.aspx
<%@ Page language= "c# " Codebehind= "Spliter.aspx.cs " AutoEventWireup= "false " Inherits= "LiTianPing.Web.Spliter " %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN " >

<html>
<head>
<title> Spliter </title>
<style type= "text/css ">
<!--
a { color: <%=Application[Session[ "Style "].ToString()+ "xtree_bgcolor "]%> ; text-decoration: none}
a:hover { color:red;text-decoration: none}
-->
</style>
<meta name= "GENERATOR " Content= "Microsoft Visual Studio .NET 7.1 ">
<meta name= "CODE_LANGUAGE " Content= "C# ">
<meta name=vs_defaultClientScript content= "JavaScript ">
<meta name=vs_targetSchema content= "http://schemas.microsoft.com/intellisense/ie5 ">
</head>
<body bgcolor= ' <%=Application[Session[ "Style "].ToString()+ "xspliter_color "]%> ' leftmargin= "0 " topmargin= "0 " marginwidth= "0 " marginheight= "0 " onMouseOver= "if(parent.middleset.cols= '0,* '){parent.middleset.cols= ' <%=Application[Session[ "Style "].ToString()+ "xleft_width "]%> ,* '} " onClick= "if(parent.middleset.cols!= '0,* '){parent.middleset.cols= '0,* '}else{parent.middleset.cols= ' <%=Application[Session[ "Style "].ToString()+ "xleft_width "]%> ,* '}; " style= "cursor: hand ">

<form id= "Form1 " method= "post " runat= "server ">
<br>
<br>
<br>
<br>
<br>