Hi, currently I am using a javascript (SectionList function) to create a dynmaic list of all sections and sub-sections.
This works great, but what I really want to do is just list the sub-sections in one section, not all sections.
Is there a way to do this either by adapting the current javascript or some other way all together?
Thanks in advance, K.
Current Javascript:
in BODY:
<script language=Javascript1.1>document.write(SectionList(section_tree))</script>
In HEAD:
This works great, but what I really want to do is just list the sub-sections in one section, not all sections.
Is there a way to do this either by adapting the current javascript or some other way all together?
Thanks in advance, K.
Current Javascript:
in BODY:
<script language=Javascript1.1>document.write(SectionList(section_tree))</script>
In HEAD:
Code:
<!--@act NETQUOTEVAR:SECTIONTREE_RAW --> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- function SectionList(ar) { var strIDs = ''; for (var i=1;i<=ar.length;i++) { if (ar[i].sURL !=null) { strIDs += '<HR noshade size="1" width="90%" align="center"><strong><a class="SectionTop" href="' + ar[i].sURL + '">' + ar[i].sName + '</a></strong><BR>'; { if (ar[i].pChild) { for (var j=1;j<=ar[i].pChild.length;j++) { strIDs += '<em><a class="SectionChild" href="' + ar[i].pChild[j].sURL + '">' + ar[i].pChild[j].sName + '</a></em><BR>'; { if (ar[i].pChild[j].pChild) { for (var k=1;k<=ar[i].pChild[j].pChild.length;k++) { strIDs += '<a class="SectionChildChild" href="' + ar[i].pChild[j].pChild[k].sURL + '">' + ar[i].pChild[j].pChild[k].sName + '</a><BR>'; } } } } } } } } strIDs += '' return strIDs } //--> </SCRIPT>
Comment