BS楼上然后右建看源代码,蝈蝈没有把这个保密的,你自己随便下的,xmlhttp异步加载

解决方案 »

  1.   

    可是我看了,什么都没有。我看到的源文件如下:<html>
    <head>
    <META NAME="Robots" CONTENT="noindex">
      <meta content="text/html;charset=gb2312" http-equiv="Content-Type">
      <title>Deeptree</title>
      <link rel="stylesheet" type="text/css" href="/expert/deeptree/css/deeptree.css">
      <script src="/Expert/style/get_css.js"></script>
    </head>
    <script>
      if (top.location == self.location)
        {
        top.location.href = "/";
        }  function selectstart()
        {
        window.event.cancelBubble = true;
        window.event.returnValue = false;
        return false;
        }
    </script>
    <body onselectstart="selectstart();" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"  class = "color1">
    <nobr>
    <div id="deeptree" class="deeptree" CfgXMLSrc="/expert/deeptree/deeptreeconfig.xml">
    </div>
    </nobr>
    </body>
    </html>
      

  2.   

    expert/deeptree/deeptreeconfig.xml........你先把这个down了,还有一个是xsl文件的Expert/style/get_css.js还有这个js,也可以down的
      

  3.   

    孟子E章:谢谢你的例子,不过看了例子以后我有些地方不是很明白,问题如下:1、
    oDiv.innerHTML = "<div style='display:;padding-left:"+nP+"px'><span class='container'><span class='clsLeaf'>.</span></span> " + "<span class='clsNotReady' style='color:white'>正在装载栏目数据,请稍侯.......</span></div>"oDiv.style.paddingLeft= nP + "px"style.paddingLeft在前面的oDiv.innerHTML语句中已经给那个div对象设置了数值了,后面为什么还加一句:oDiv.style.paddingLeft= nP + "px"  ?
    2、子菜单的缩进是怎么实现的?我没有找到实现这个功能的地方,希望能帮我解决这两个问题,谢谢了!!
      

  4.   

    另外,还有个问题:oDiv.style.display= ""就是这句,也是在前面的div元素里已经设置style='display:;为什么后面还要再加这样一句?
      

  5.   

    动态修改属性,paddingLeft设置树的缩进,display隐藏、显示信息
      

  6.   

    oDiv.style.paddingLeft= nP + "px"这句实现树的缩进吗?可是怎么实现的呢?谢谢!!
      

  7.   

    可能是我没有说清楚,我的问题是这样的:oDiv.innerHTML = "<div style='display:;padding-left:"+nP+"px'><span class='container'><span class='clsLeaf'>.</span></span> " + "<span class='clsNotReady' style='color:white'>正在装载栏目数据,请稍侯.......</span></div>"这里已经设置了style='display:;padding-left:"+nP+"px'  到这句:oDiv.style.paddingLeft= nP + "px"  再设置oDiv.style.paddingLeft的值,可是这两句代码之间nP的值并没有改变,如何实现树的缩进呢?