Hi,
Does anyone know how to list only the subsections of the main section you are in on the products page.
I know there is the java code which can put the list of hyperlinks of all sections and subsection, but I only need the subsections of the section I am in. (If that makes any sense!)
Heres the java code but can it be modified?
<!--@act NETQUOTEVAR:SECTIONTREE_RAW -->
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function SectionList(ar)
{
var strIDs = '<table border=0 width=95% cols=2>';
for (var i=1;i<=ar.length;i++)
{
if (ar[i].sURL !=null)
{
strIDs += '<tr><td colspan=2><a href="' + ar[i].sURL + '"><span class="actxxsmall">' + ar[i].sName + '</span></a></td></tr>';
{
if (ar[i].pChild)
{
for (var j=1;j<=ar[i].pChild.length;j++)
{
if (j <= ar[i].pChild.length)
{
strIDs += '<tr><td><img src=shim.gif width=5></td><td><a href="' + ar[i].pChild[j].sURL + '"><span class="actxxsmall">' + ar[i].pChild[j].sName + '</span></a></td></tr>';
}
}
}
}
}
}
strIDs += '</table>'
return strIDs
}
//-->
</SCRIPT>
Thanks to whoever undertsands!
Does anyone know how to list only the subsections of the main section you are in on the products page.
I know there is the java code which can put the list of hyperlinks of all sections and subsection, but I only need the subsections of the section I am in. (If that makes any sense!)
Heres the java code but can it be modified?
<!--@act NETQUOTEVAR:SECTIONTREE_RAW -->
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function SectionList(ar)
{
var strIDs = '<table border=0 width=95% cols=2>';
for (var i=1;i<=ar.length;i++)
{
if (ar[i].sURL !=null)
{
strIDs += '<tr><td colspan=2><a href="' + ar[i].sURL + '"><span class="actxxsmall">' + ar[i].sName + '</span></a></td></tr>';
{
if (ar[i].pChild)
{
for (var j=1;j<=ar[i].pChild.length;j++)
{
if (j <= ar[i].pChild.length)
{
strIDs += '<tr><td><img src=shim.gif width=5></td><td><a href="' + ar[i].pChild[j].sURL + '"><span class="actxxsmall">' + ar[i].pChild[j].sName + '</span></a></td></tr>';
}
}
}
}
}
}
strIDs += '</table>'
return strIDs
}
//-->
</SCRIPT>
Thanks to whoever undertsands!
Comment