100分请教如何实现这样的功能

tababy 2003-04-28 10:25:24
像网站左边可以缩进的窗口
http://www.5inet.net/bbs/frame.asp?url=http://www.5inet.net/bbs/index.asp
...全文
40 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
fason 2003-04-28
  • 打赏
  • 举报
回复
你这里的
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";
}
wsj 2003-04-28
  • 打赏
  • 举报
回复
<frameset cols="160,*" framespacing="0" frameborder="no" id="b">
<frameset cols="*,8" name="leftmenu" scrolling="auto" marginwidth="0" marginheight="0" id="c">
<frame src="leftbar.asp" name="leftmenu" scrolling="auto" marginwidth="0" marginheight="0" id="l">
<frame src="mid.asp" name="leftbar" scrolling="no" marginwidth="0" marginheight="0" id="m">
</frameset>
<frameset rows="30,*" frameborder="NO" border="0" framespacing="0">
<frame src="topbar.asp" name="topbar" scrolling="NO" noresize >
<frame src="http://www.5inet.net/bbs/index.asp" name="forum_main" scrolling="auto" marginwidth="0" marginheight="0">
</frameset>

mid.asp
----

<script>
function hide()
{
var o = document.images[0];
top.b.cols='8,*';top.c.cols='0,*';
o.src="pic/l.gif";
document.all.className='r';
}
function show()
{
var o = document.images[0];
top.b.cols='160,*';top.c.cols='133,11';
o.src="pic/r.gif";
document.all.className='l';
}
function act(e)
{
var o = document.images[0];
if(o.src.match("pic/r.gif")!=null)
{
hide();
}
else
{
show();
}
}
document.oncontextmenu=new Function('event.returnValue=false;');
document.onselectstart=new Function('event.returnValue=false;');
function window.onload()
{
if(screen.Width>800){show();}else{hide();}
}
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll=no>
<div align=left>
<table width="10" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" align="left" valign="middle"><a href="#" onClick="act(this);" id="T" title="改变框架的排列方式" class=l onMouseover="this.style.background='#B1CBFA';" onMouseOut="this.style.background='silver';"><span style="border-top:1px solid white;border-right:1px solid white;height:58px;padding-top:17px;padding-left:1px;"><img src=pic/r.gif border=0 id="O" width="4" height="7"></span></a></td>
</tr>
</table>
</div>
</body>
fason 2003-04-28
  • 打赏
  • 举报
回复
http://expert.csdn.net/Expert/topic/1614/1614192.xml?temp=.3286859

87,987

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧