日期:2014-05-18  浏览次数:20425 次

没分了~请求各位帮助===框架的左框架显示和隐藏===
<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
{