I have 2 sets of link colours defined in actinic.css. This is because some of the site has links on a white background the rest is on a black background.
I need to apply my 2nd set of links in 2 places.
one act-navigation_item this is easy I simply apply the class to the link in the template
two - this is the one I am struggling with, the javascript menu system since i can't wrap this in a class
this is the js (from advanced user guide)
<SCRIPT LANGUAGE = JavaScript>
<!--
function Recurse(pItem)
{
for (var i = 1; i <= pItem.length; i++)
{
document.write("<UL>");
document.write("<LI>");
document.writeln(pItem[i].sName.link(pItem[i].sURL));
document.write("</LI>");
if (pItem[i].pChild)
{
Recurse(pItem[i].pChild);
}
document.write("</UL>");
}
}
Recurse(section_tree);
-->
</SCRIPT>
I need to apply my 2nd set of links in 2 places.
one act-navigation_item this is easy I simply apply the class to the link in the template
two - this is the one I am struggling with, the javascript menu system since i can't wrap this in a class
this is the js (from advanced user guide)
<SCRIPT LANGUAGE = JavaScript>
<!--
function Recurse(pItem)
{
for (var i = 1; i <= pItem.length; i++)
{
document.write("<UL>");
document.write("<LI>");
document.writeln(pItem[i].sName.link(pItem[i].sURL));
document.write("</LI>");
if (pItem[i].pChild)
{
Recurse(pItem[i].pChild);
}
document.write("</UL>");
}
}
Recurse(section_tree);
-->
</SCRIPT>
Comment