建了一个有top,left,right框架的网页,如何通过top上的一个连接来关闭left页面啊!在线等…解决就结贴 建了一个有top,left,right框架的网页,如何通过top上的一个连接来关闭left页面啊!在线等…解决就结贴我在top上面放置了一个关闭导航树的连接,请问如何关闭left页面。还放置了一个打开导航树的连接,如何打开左历的导航树呢。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是不是象CSDN上的啊?可以问斑竹啊。 参考:frame中: window.parent.frames["framename"].document.location.href=url;iframe中:document.["framename"].document.location.href=url;这个是指框架执行页面的,改一下就是close了。 我是想关闭左边页面,然后右边页面就变大,就像CSDN一样.一打开左边页面,右边页面也相应变小.想实现这个功能.请大家多帮帮忙.谢谢! 参考:frame中: javascript:parent.framename.style.width=0; main.htm<frameset cols='120,16,*' rows='*' frameborder='NO' border='0' id=oa_frame ><frame name=top noResize scrolling=no src="" target="middle"><frame name=middleframe src='left.htm' scrolling='NO' frameborder='NO' noresize><frame name=bottom scrolling=no src=""><noframes></noframes>Left.htm<html><head><title>button_title_l</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script>function oa_tool(){if(window.parent.oa_frame.cols=="0,16,*"){frameshow.src="images/p_1.gif";oa_tree.title="隐藏工具栏"window.parent.oa_frame.cols="120,16,*";}else{frameshow.src="images/p_2.gif";oa_tree.title="显示工具栏"window.parent.oa_frame.cols="0,16,*";}}</script></head><body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#CCCCCC"><table width="16" border="0" height="100%" cellpadding="0" cellspacing="0" align="left"> <tr align="center"> <td background="images/bg_1.gif"> <div id=oa_tree onclick="oa_tool();" title=隐藏工具栏><img id=frameshow src="images/p_1.gif" width="9" height="50" ></div> </td> </tr></table></body></html>The Important Code is:window.parent.oa_frame.cols="120,16,*"; 关闭不了,CSDN也是把它隐藏了,也就是把col设为0 cyokin(呼吸の亜) ( ) 说的可以啊。赞成。也学了一招。谢谢 搞定,结贴.非常感谢"cyokin(呼吸の亜)"大哥. 如何为下拉列表框添加一个Change事件 获取服务器IP asp.net 下拉菜单问题(vs2008 c#) Visual Studio 2005智能设备CAB项目是什么是什么意思? 100分求教多线程的问题 分析器错误信息: 未能加载类型“Wrox.ThePhile.Web.Global”。 关于Project Web Access 中的项目组合分析器里视图的问题 如何修改DataSet中表的字段类型。 关于ASP.NET 2.0 交流的群已开放[仅对已在学习跟研究.net 2.0 的朋友开放] XML中的两个概念搞不清楚啊 初学,为何老说找不到类型或命名空间 问个问题
可以问斑竹啊。
frame中: window.parent.frames["framename"].document.location.href=url;
iframe中:document.["framename"].document.location.href=url;
这个是指框架执行页面的,改一下就是close了。
frame中: javascript:parent.framename.style.width=0;
<frameset cols='120,16,*' rows='*' frameborder='NO' border='0' id=oa_frame >
<frame name=top noResize scrolling=no src="" target="middle">
<frame name=middleframe src='left.htm' scrolling='NO' frameborder='NO' noresize>
<frame name=bottom scrolling=no src="">
<noframes>
</noframes>
Left.htm
<html>
<head>
<title>button_title_l</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
function oa_tool(){
if(window.parent.oa_frame.cols=="0,16,*"){
frameshow.src="images/p_1.gif";
oa_tree.title="隐藏工具栏"
window.parent.oa_frame.cols="120,16,*";
}
else{
frameshow.src="images/p_2.gif";
oa_tree.title="显示工具栏"
window.parent.oa_frame.cols="0,16,*";}
}
</script>
</head>
<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#CCCCCC">
<table width="16" border="0" height="100%" cellpadding="0" cellspacing="0" align="left">
<tr align="center">
<td background="images/bg_1.gif">
<div id=oa_tree onclick="oa_tool();" title=隐藏工具栏><img id=frameshow src="images/p_1.gif" width="9" height="50" ></div>
</td>
</tr>
</table>
</body>
</html>The Important Code is:
window.parent.oa_frame.cols="120,16,*";
赞成。也学了一招。谢谢