try something liketo hide:
top.document.body.rows = "0,*";
or
top.document.body.cols = "0,*"; to show:
top.document.body.rows = "300,*";
or
top.document.body.cols = "300,*";
top.document.body.rows = "0,*";
or
top.document.body.cols = "0,*"; to show:
top.document.body.rows = "300,*";
or
top.document.body.cols = "300,*";
应该是该Frameset的name吧
<frameset rows="200,*">
<frame src="">
<frame src="frame1.html">
</frameset>2. frame1.html:
<input type="button" value="hide" onclick="showFrame(this)"><script language="javascript">
function showFrame(obj)
{
if (obj.value == "hide")
{
top.document.body.rows = "0,*";
obj.value = "show";
}
else
{
top.document.body.rows = "200,*";
obj.value = "hide";
}
}
</script>
<frame src="">
<frame src="frame1.htm" style="border:2px solid red">
<frame src="">
</frameset>frame1.htm
=============
<body leftmargin=0>
<input type="button" value="<<" onclick="showFrame(this)">
<script language="javascript">
function showFrame(o)
{
a=top.document.getElementById("mxh")
if(a.cols=="200,30,*"){
a.cols="0,50,*"
o.value=">>"
}
else
{
a.cols="200,30,*"
o.value="<<"
}
}
</script>
{
var o = document.images[0];
top.b.cols='11,*';top.c.cols='0,*';
o.src="images/l.gif";
document.all.className='r';
}
function show()
{
var o = document.images[0];
top.b.cols='144,*';top.c.cols='133,11';
o.src="images/r.gif";
document.all.className='l';
}
function act(e)
{
var o = document.images[0];
if(o.src.match("images/r.gif")!=null)
{
hide();
}
else
{
show();
}
}b是框架的ID