<DSTree text="班组动态" href="http://" target="box" treeId="543543" />
</DSTree>
        </DSTree>
</DSTreeRoot></xml> 比如我点"班组概况" 连到  text.aspx 请问如何实现?
//////////////////////////////////////////////////////“ target="box" ”  改为   “ target="mainFrame"  ”不行吗?

解决方案 »

  1.   

    不行,我现在只能实现点节点在“leftFrame”显示,不知道怎么实现在“mainFrame”显示我在            function clickHandle()里加上          {
                      var treeId;
                      treeId=this.getAttribute("treeId");
                      window.location="test1.aspx";
                    }但链节过来的页面是在 "leftFrame"显示,现在我要它定位到"mainFrame"显示请指点!
      

  2.   

    哦上面的function clickHandle()
    我忘了加   if( treeId=="4353")
     
               window.location="test1.aspx";
      

  3.   

    window.location="test1.aspx";
                    }但链节过来的页面是在 "leftFrame"显示,现在我要它定位到"mainFrame"显示请指点!////////////////////////////////////////////////////如果没有意外,这样就可以了吧?
    问题就是这么简单:)mainFrame.location="test1.aspx";
      

  4.   


    规范点儿:mainFrame.location.href="test1.aspx";
      

  5.   

    还是不行。错误:location为空或不是对象,我想关键就是left这边“不认”mainFrame
      

  6.   


    parent.document.getElementById('mainFrame').location.href="test1.aspx";
      

  7.   

    这个是试验过了的,一定没错,前面的只是草草写下,不好意思 :)///////////////////////////////////////////////////////<input type=button value="ddddd" onclick="parent.document.getElementById('mainFrame').src='b.htm'">
      

  8.   


      错误:parent.document.getElementById('...').location 为空或不是对象
      

  9.   

    是:parent.document.getElementById('mainFrame').src
    没错!!!!!!用这个!!!!!!而不是location