没分了~请求各位帮助===框架的左框架显示和隐藏===
<frameset rows= "* " cols= "172,800 " framespacing= "0 " frameborder= "no " border= "0 " scroll= "no " style= "margin:0px ">
<frame src= "a.htm " name= "left " scrolling= "auto " noresize= "noresize " marginwidth= "0 " id= "L " />
<frame src= "b.htm " name= "right " scrolling= "no " noresize= "noresize " marginwidth= "0 " />
</frameset>
<noframes>
在b.htm放一个按钮控控制左框架的显示和隐藏....请高手帮下...
[解决办法]
main页面
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head id= "Head1 " runat= "server ">
<title> 员工技能库管理系统 </title>
<link href= "../Css/TreeView.css " rel= "stylesheet " type= "text/css " />
</head>
<frameset rows= "155,* " cols= "* " frameborder= "NO " border= "0 " framespacing= "0 ">
<frame src= "Top.aspx " name= "topFrame " scrolling= "no " noresize= "noresize ">
<frameset cols= "160,11,* " frameborder= "NO " border= "0 " framespacing= "0 " id= "AllFrame ">
<frame src= "TreeView.aspx " name= "leftFrame " scrolling= "auto " noresize= "noresize ">
<frame src= "Middle.aspx " name= "middleFrame " noresize= "noresize " scrolling= "no ">
<frame src= "Right.aspx " name= "mainFrame " noresize= "noresize " scrolling= "auto ">
</frameset>
<%--当浏览器不支持框架时,给用户出现提示信息 --%>
<body>
<noframes>
<pre id= "p2 "> </pre>
<p id= "p1 ">
此网页使用了框架,但您的浏览器不支持框架.若要查看此框架集,请使用支持 HTML 4.0 及更高版本的 Web 浏览器.
</p>
</noframes>
</body>
</html>
<%--
* Description: 系统框架中间收缩条设置
* Copyright: Copyright (c) 2007
* @check at
--%>
<%@ Page Language= "C# " AutoEventWireup= "true " CodeFile= "Middle.aspx.cs " Inherits= "Layout_Middle " %>
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<title> 中间收缩控制条的实现 </title>
<%--样式条样式 --%>
<link href= "../Css/TreeView.css " rel= "stylesheet " type= "text/css " />
<!--收藏栏的js设置-->
<script language= "javascript " type= "text/javascript ">
function shframe()
{
//隐藏条的缩起
if(parent.AllFrame.cols!= '0,11,* ')
{
parent.AllFrame.cols= '0,11,* ';
document.all.pointsh.innerHTML= " <font class= 'point ' style= 'background-color: #7B869A; background-image: url(../Image/bar.jpg); layer-background-image: url(../Image/bar.jpg); border: 1px none #000000 ' color= '#FFFFFF '> 4 </font> ";
}
//隐藏条的展开
else
{
parent.AllFrame.cols= '160,11,* ';
document.all.pointsh.innerHTML= " <font class= 'point 'style= 'background-color: #7B869A; background-image: url(../Image/bar.jpg); layer-background-image: url(../Image/bar.jpg); border: 1px none #000000 ' color= '#FFFFFF '> 3 </font> ";
}
}
</script>
</head>
<body style= "background-color: #99CCff; " topmargin= "0px " marginheight= "0 " leftmargin= "0 "
marginwidth= "0 ">
<table width= "100% " height= "100% " border= "0 " cellpadding= "0 " cellspacing= "0 ">
<tr>
<td width= "100% ">
</td>
<td style= "width: 100%; ">
</td>
<td style= "background-image: url(../Image/chang.jpg); bgcolor: #7B869A; width: 14px; ">
<table width= "100% " height= "19 " border= "0 " cellpadding= "0 " cellspacing= "0 ">
<tr>
<td height= "1px " onclick= "shframe() " style= "width: 13px ">
<img src= "../Image/dot.gif " width= "11 " height= "0 " alt= " " /> </td>
</tr>
<tr>
<td id= "pointsh " style= "height: 18px; width: 13px; " onclick= "shframe() ">
<font class= "point " style= "background-color: #7B869A; background-image: url(../Image/bar.jpg);
layer-background-image: url(../Image/bar.jpg); border: 1px none #000000 " color= "#FFFFFF ">
3 </font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<%@ Page Language= "C# " MasterPageFile= "~/MasterPage.master " AutoEventWireup= "true " CodeFile= "Right.aspx.cs " Inherits= "Layout_Right " Title= "Untitled Page " %>
<%--
* Description: 系统框架右边页面的展示文件
* Copyright: Copyright (c) 2007
* @check at
--%>
<asp:Content ID= "Content1 " ContentPlaceHolderID= "ContentPlaceHolder1 " runat= "Server ">
<table border= "1 " style= "width: 80%; height: 46% " align= "center ">
<tr>
<td style= "width: 100px; height: 23px ">
ddd </td>
<td style= "width: 100px; height: 23px ">
afa </td>
<td style= "width: 100px; height: 23px ">
afaf </td>
</tr>
<tr>
<td style= "width: 100px ">
dfa </td>
<td style= "width: 100px ">
dfafa </td>
<td style= "width: 100px ">
测试 </td>
</tr>
<tr>
<td style= "width: 100px ">
测试 </td>
<td style= "width: 100px ">
测试 </td>
<td style= "width: 100px ">
测试 </td>
</tr>
</table>
</asp:Content>
<%--
* Description: 系统框架顶端文件
* Copyright: Copyright (c) 2007
--%>
<%@ Page Language= "C# " AutoEventWireup= "true " CodeFile= "Top.aspx.cs " Inherits= "Layout_Top " %>
<%@ Register Src= "~/UserControls/Title.ascx " TagName= "Title " TagPrefix= "Top " %>
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head runat= "server ">
<title> 顶端页面 </title>
</head>
<body>
<form id= "form1 " runat= "server ">
<table width= "100% ">
<tr>
<td align= "center ">
<Top:Title ID= "top " runat= "server " />
</td>
</tr>
</table>
</form>
</body>
</html>
再加上一个左页面就行了,自己组装下,运行成功,但是是用侧边栏控件的,有点类似QQ论坛里的上侧边条.仅供参考