你用这个试试看
<button onclick="parent.framesetName(是frameset的名称).cols='0,*'">display</button>
<button onclick="parent.framesetName(是frameset的名称).cols='0,*'">display</button>
解决方案 »
- 关于使用dom访问xml问题,急!急!急!
- JavaScript获取HTML源码截取指定变量值并输出
- javascript文档站,自己开发的,来顶顶哦
- javascript中定义的变量是否可以用XML保存?---大侠救命啊
- asp如何调用javascript中的值
- 请问如何限制打开子页面的数目。
- 将htm文件转换成JS的问题
- 求一个删掉字符串两边空格的正则表达式?
- 请问如何判断用户是否通过http://aaa.bbb.ccc/网站下的web页面进入http://ddd.fff.ggg/的
- 点击单选按钮后,如何得到它得值?为什么提示我没有定义???
- xmlhttp发送数据有时不成功的问题
- text的name能动态改变吗?
主页面html
<html>
<head>
<title> New Document </title>
<frameset rows="50%,*" frameborder="NO" framespacing=0 id="parentFrame">
<frame name="totalFrame" marginWidth=0 src="a.html" marginHeight=0 frameBorder=NO framespacing=0 scrolling=no>
<frame name="yewuFrame" marginWidth=0 marginHeight=0 src="jsps/yewu.jsp" frameBorder=NO framespacing=0 scrolling=no >
</frameset>
</head>
<body bgcolor="#FFFFFF">
</body>
</html>左页面a.html
<html>
<head>
<title> New Document </title>
</head>
<body bgcolor="#FFFFFF">
<button onclick="parent.parentFrame.cols='0,*'">display</button>
</body>
</html>
其实就是将他的cols=0就行了
function switchSysBar(){
if (switchPoint.innerText==3){
switchPoint.innerText=4
document.all("mnuList").style.display="none"
top.content.cols="16,*"
}
else{
switchPoint.innerText=3
document.all("mnuList").style.display=""
top.content.cols="166,*"
}
}
</SCRIPT>
<TD align=middle vAlign=center bgcolor="#CCCCCC"><SPAN class=np id=switchPoint
title=打开/关闭导航onclick=switchSysBar()>3</SPAN></TD>