CSDN导航问题!

remyxu 2003-07-29 03:32:15
请问那位大侠知道左面导航栏的关闭和“显示菜单”是什么原理,如何实现,我看了半天源码,也没太弄明白,主要是JS基础较差,谁能明白的讲解一下!谢谢了!
...全文
32 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
remyxu 2003-07-31
  • 打赏
  • 举报
回复
正准备开始研究xml.谁能说说大概的原理?
速马 2003-07-31
  • 打赏
  • 举报
回复
右边的是静态XML+XSL
没发现永远都是只有最新300篇吗,哈哈
remyxu 2003-07-31
  • 打赏
  • 举报
回复
右面内容用什么实现,DATAGRID?
remyxu 2003-07-29
  • 打赏
  • 举报
回复
top.contentbar.document.all("showtoc").style.display = "block";
what's means?
Montaque 2003-07-29
  • 打赏
  • 举报
回复
呵呵,偶也不是很好。稍微看了一下。原理就是导航兰是一个frame,隐藏的时候设置他的宽度为1,显示的时候为正常的宽度,215。

var strColumns_Current = "215,*";

function movenext()
{
top.deeptree.movenext();
}

function moveprevious()
{
top.deeptree.moveprevious();
}

function hidetoc()
{
strColumns_Current = top.mainframeset.cols

top.mainframeset.cols = "1,*"; //设置导航栏宽度为1
top.contentbar.document.all("showtoc").style.display = "block";
}

function showtoc()
{
top.mainframeset.cols = strColumns_Current;
top.contentbar.document.all("showtoc").style.display = "none";
}

111,097

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

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