大家都用什么TreeView控件(WEB),微软的IE WebContral太难看了:(

编程烂指 2005-06-18 12:36:52
最好能介绍一下,有地址当然最好
...全文
476 21 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
21 条回复
切换为时间正序
请发表友善的回复…
发表回复
编程烂指 2005-06-20
  • 打赏
  • 举报
回复
谢谢大家.
qingsongjian 2005-06-19
  • 打赏
  • 举报
回复
希望这个对你有用js写的树型
<TD vAlign="top" align="center" colSpan="2">
<DIV class="parent" id="Div1" style="FONT-SIZE: 10pt" runat="server"><A href="Forum.aspx" target="frame2"><IMG src="images/link.gif" border="0">讨论区</A></DIV>
<DIV class="parent" id="Div2" style="FONT-SIZE: 10pt" runat="server"><A href="ManageBulletin.aspx" target="frame2"><IMG src="images/link.gif" border="0">管理公告</A></DIV>
<DIV class="parent" id="Div3" style="FONT-SIZE: 10pt" runat="server"><A onclick="expandIt('KB1'); return false" href="#"><IMG src="images/plus.gif" border="0">邮箱</A></DIV>
<DIV class="child" id="KB1Child" style="FONT-SIZE: 10pt"><A href="MailBox.aspx" target="frame2"><IMG alt="" src="images/spacer.gif" border="0"><IMG src="images/open.gif" border="0">所有邮件</A><BR>
<A href="Rubbish.aspx" target="frame2"><IMG height="11" alt="" src="images/spacer.gif" width="15" border="0"><IMG src="images/open.gif" border="0">回收站</A><BR>
<A href="SendMail.aspx" target="frame2"><IMG height="11" alt="" src="images/spacer.gif" width="15" border="0"><IMG src="images/open.gif" border="0">发送邮件</A></DIV>
<DIV class="parent" id="KB2Parent" style="FONT-SIZE: 10pt" runat="server"><A onclick="expandIt('KB2'); return false" href="#"><IMG src="images/plus.gif" border="0">个人设置</A></DIV>
<DIV class="child" id="KB2Child" style="FONT-SIZE: 10pt"><A href="MyInfo.aspx" target="frame2"><IMG height="11" alt="" src="images/spacer.gif" width="15" border="0"><IMG src="images/open.gif" border="0">个人信息</A><BR>
<A href="ChangePassword.aspx" target="frame2"><IMG height="11" alt="" src="images/spacer.gif" width="15" border="0"><IMG src="images/open.gif" border="0">修改密码</A></DIV>
<DIV class="parent" id="KB3Parent" style="FONT-SIZE: 10pt" runat="server"><A onclick="expandIt('KB3'); return false" href="#"><IMG src="images/plus.gif" border="0">管理网站</A></DIV>
<DIV class="child" id="KB3Child" style="FONT-SIZE: 10pt"><A href="AppendCourse.aspx" target="frame2"><IMG alt="" src="images/spacer.gif" border="0"><IMG src="images/open.gif" border="0">浏览课程</A><BR>
<A href="AppendTeacher.aspx" target="frame2"><IMG src="images/open.gif" border="0">增加老师</A><BR>
<A href="Administrator.aspx" target="frame2"><IMG src="images/open.gif" border="0">增加学生</A><BR>
<A href="AddCourse.aspx" target="frame2"><IMG alt="" src="images/spacer.gif" border="0"><IMG src="images/open.gif" border="0">增加课程</A></DIV>
<DIV class="parent" id="KB4Parent" style="FONT-SIZE: 10pt" runat="server"><A onclick="expandIt('KB3'); return false" href="#"><IMG src="images/plus.gif" border="0">管理课程</A></DIV>
<DIV class="child" id="KB4Child" style="FONT-SIZE: 10pt"><A href="ManageStudent.aspx" target="frame2"><IMG alt="" src="images/spacer.gif" border="0"><IMG src="images/open.gif" border="0">管理学生</A><BR>
<A href="Assist.aspx" target="frame2"><IMG alt="" src="images/spacer.gif" border="0"><IMG src="images/open.gif" border="0">指定指导老师</A></DIV>
</TD>
<script language="JavaScript">
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;

if (ver4) {
with (document) {
write("<STYLE TYPE='text/css'>");
if (NS4) {
write(".parent {position:absolute; visibility:visible}");
write(".child {position:absolute; visibility:visible}");
write(".regular {position:absolute; visibility:visible}")
}
else {
write(".child {display:none}")
}
write("</STYLE>");
}
}

function getIndex(el) {
ind = null;
for (i=0; i<document.layers.length; i++) {
whichEl = document.layers[i];
if (whichEl.id == el) {
ind = i;
break;
}
}
return ind;
}

function arrange() {
nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height;
for (i=firstInd+1; i<document.layers.length; i++) {
whichEl = document.layers[i];
if (whichEl.visibility != "hide") {
whichEl.pageY = nextY;
nextY += whichEl.document.height;
}
}
}

function initIt(){
if (!ver4) return;
if (NS4) {
for (i=0; i<document.layers.length; i++) {
whichEl = document.layers[i];
if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
}
arrange();
}
else {
divColl = document.all.tags("DIV");
for (i=0; i<divColl.length; i++) {
whichEl = divColl(i);
if (whichEl.className == "child") whichEl.style.display = "none";
}
}
}

function expandIt(el) {
if (!ver4) return;
if (IE4) {
whichEl = eval(el + "Child");
if (whichEl.style.display == "none") {
whichEl.style.display = "block";
}
else {
whichEl.style.display = "none";
}
}
else {
whichEl = eval("document." + el + "Child");
if (whichEl.visibility == "hide") {
whichEl.visibility = "show";
}
else {
whichEl.visibility = "hide";
}
arrange();
}
}
onload = initIt;
</script>
</FONT>
<P></P>
<div id="KB1Parent" class="parent" style="FONT-SIZE: 10pt">
<a href="sample.htm" target="frame2"></a> </div>
<script language="JavaScript">
if (NS4) {
firstEl = "KB1Parent";
firstInd = getIndex(firstEl);
arrange();
}
</script>
boytomato 2005-06-19
  • 打赏
  • 举报
回复
ms 的那个控件中就有这个的...
http://www.microsoft.com/china/msdn/archives/library/dnaspp/html/aspnet-usingtreeviewiewebcontrol.asp

在这个页面找找...
编程烂指 2005-06-19
  • 打赏
  • 举报
回复
TO boytomato
有tabstrip和sitemap吗?
boytomato 2005-06-19
  • 打赏
  • 举报
回复
http://blog.csdn.net/laily/archive/2004/06/25/26263.aspx
dsclub 2005-06-19
  • 打赏
  • 举报
回复
学习好CSS
ChengKing 2005-06-19
  • 打赏
  • 举报
回复
ComponentOne公司的:WebMenus and WebBars ASP.NET 也行,我公司在用:ComponentOne的控件.
不过我只学过它的图表控件,没用过它的TreeView控件.你可以自己学学呀?
itoltgvi 2005-06-19
  • 打赏
  • 举报
回复
还是用样式方便些
编程烂指 2005-06-18
  • 打赏
  • 举报
回复
好,我试试
hackate 2005-06-18
  • 打赏
  • 举报
回复
你TreeView这个难看。你可以美化的嘛。加样式嘛。恩
boytomato 2005-06-18
  • 打赏
  • 举报
回复
http://www.componentart.com/demos/treeview/features/core_features/default.aspx

你注册一下,下下来试用版.....

我给你破解 dll....

http://www.cnblogs.com/Files/gwazy/ComponentArt.Web.UI.rar
boytomato 2005-06-18
  • 打赏
  • 举报
回复
http://www.microsoft.com/china/msdn/archives/library/dnaspp/html/aspnet-usingtreeviewiewebcontrol.asp

ms 的 treeview 不因为什么吧.服务器控件更方面交互......

cyy1981 2005-06-18
  • 打赏
  • 举报
回复
我也想用哎
编程烂指 2005-06-18
  • 打赏
  • 举报
回复
阿赖是谁??
codeangel 2005-06-18
  • 打赏
  • 举报
回复
我一直在用ms的啊,我发现他不错啊。
不想用,可以找个js的,
哦,听说阿赖写的那个不错。
你看看吧
zerocoin 2005-06-18
  • 打赏
  • 举报
回复
难看吗?那些图可以自己改的啊?实在觉得不好看的,可以自己写个也可以的哦!
jonescheng 2005-06-18
  • 打赏
  • 举报
回复
其时用JS自己写个也不是太难的事,网上的例子比比皆事
he_hawk 2005-06-18
  • 打赏
  • 举报
回复
你TreeView这个难看。你可以美化的嘛。加样式嘛。

其它的未必就好使
zhangqiushui 2005-06-18
  • 打赏
  • 举报
回复
用javascript写的
ttjacky 2005-06-18
  • 打赏
  • 举报
回复
ComponentOne

62,244

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

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