这个是控制脚本:
function switchSysBar(){
if (switchPoint.innerText==3){
switchPoint.innerText=4
//parent.document.all("frmTitle").style.display="none"
//alert(top.content.rows)
document.all("mnuList").style.display="none"
top.content.cols="10,*"
}
else{
switchPoint.innerText=3
document.all("mnuList").style.display=""
top.content.cols="150,*"
}
}下面是frames代码,你自已参考参考吧:
<frameset name=forum rows="28,*" noresize scrolling="no" border=0 frameborder="0"  bordercolor="white" framespacing="0" >
<frame name=title src="title.asp" noresize scrolling="no" >
<frameset name=content cols="150,*" noresize scrolling="no" border=0 frameborder="0" framespacing="0">
<frameset name=menu noresize scrolling="no" border=0 frameborder="0" framespacing="0" rows="20,*">
<frame name="BoardRefresh" noresize scrolling="no" src="">
<frame name="BoardTitle" noresize scrolling="no" target="BoardMenu" src="menu.asp">
</frameset>
<frame src="main.asp?boardid=1" name="BoardMain">
</frameset>
</frameset>
<noframes>
 <body>
  sorry ! your browser not support frame!
 </body>
</noframes>

解决方案 »

  1.   

    like CSDN here:var strColumns_Current = "215,*";
    function hidetoc()
      {
      strColumns_Current = top.mainframeset.cols
      
      top.mainframeset.cols = "1,*";
      top.contentbar.document.all("showtoc").style.display = "block";
      }function showtoc()
      {
      top.mainframeset.cols = strColumns_Current;
      top.contentbar.document.all("showtoc").style.display = "none";
      }
      并定位到右边窗口的某一行
    =============================
    parent.frames["right"].document.body.scrollTop=100oruse
    parent.frames["right"].location.href="**.asp#a"
    <a name=a>test</a>