<h2>Example</h2><div class="dtree"> <p><a href="javascript: d.openAll();">open all</a> | <a href="javascript: d.closeAll();">close all</a></p> <script type="text/javascript">
<!-- d = new dTree('d'); d.add(0,-1,'My example tree');
d.add(1,0,'Node 1','example01.html'); //exampled01.html怎么换成\\srv01\sharing独立窗口打开?
d.add(2,0,'Node 2','example01.html');
d.add(3,1,'Node 1.1','example01.html');
d.add(4,0,'Node 3','example01.html');
d.add(5,3,'Node 1.1.1','example01.html');
d.add(6,5,'Node 1.1.1.1','example01.html');
d.add(7,0,'Node 4','example01.html');
d.add(8,1,'Node 1.2','example01.html');
d.add(9,0,'My Pictures','example01.html','Pictures I\'ve taken over the years','','','img/imgfolder.gif');
d.add(10,9,'The trip to Iceland','example01.html','Pictures of Gullfoss and Geysir');
d.add(11,9,'Mom\'s birthday','example01.html');
d.add(12,0,'Recycle Bin','example01.html','','','img/trash.gif'); document.write(d); //-->
</script>

解决方案 »

  1.   

    要知道用的啥js控件,才知道参数呀
    我找到的add的参数是
    第一个参数,表示当前节点的ID 
    第二个参数,表示当前节点的父节点的ID,根节点的值为 -1 
    第三个参数,节点要显示的文字 
    第四个参数,节点的Url 
    第五个参数,鼠标移至该节点时节点的Title 
    第六个参数,节点的target 
    第七个参数,用做节点的图标,节点没有指定图标时使用默认值 
    第八个参数,用做节点打开的图标,节点没有指定图标时使用默认值 
    第九个参数,判断节点是否打开
    应该LZ用的设置第六个参数为"_blank"即可
    如:d.add(1, 0, 'Node 1', 'example01.html', '', '_blank');
      

  2.   

    o,感谢你的关注!
    example01.html是一个网页
    可把此网页换成服务器的路径(\\srv01\sharing)?就像EXCEL表那样通过超连接打开服务器的文件夹,可有办法?
      

  3.   

    但是把\\srv01\sharing写进去是不行的