I'm trying to add the Yahoo-style section list in Act_BrochurePrimary.html, and I can only get the top levels to show, not the second levels.
The code before </HEAD> is as follows:
I have the code...
... where I want the menu to appear.
I originally had references to "Act_section_tree.js" and (YahooSections(section_tree)) but Actinic had generated a js file called "Act_sections.js" so I changed the references to suit.
Any idea what I'm doing wrong and what to change?
TIA
Malcolm
The code before </HEAD> is as follows:
Code:
<LINK REL=STYLESHEET HREF="actinic.css"> <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT> <SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT> <SCRIPT LANGUAGE="JavaScript" SRC="Act_sections.js" TYPE="text/javascript"></SCRIPT> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- function YahooSections(ar) { var strIDs = ''; for (var i=1;i<=ar.length;i++) { if (ar[i].sURL !=null) { strIDs += '<a href="' + ar[i].sURL + '"><span class="actxsmall"><b>' + ar[i].sName + '</b></span></a><br>'; { if (ar[i].pChild) { for (var j=1;j<=ar[i].pChild.length;j++) { if (j < ar[i].pChild.length) { strIDs += '<a href="' + ar[i].pChild[j].sURL + '"><span class="actxsmall">' + ar[i].pChild[j].sName + '</span></a>, '; } else { strIDs += '<a href="' + ar[i].pChild[j].sURL + '"><span class="actxsmall">' + ar[i].pChild[j].sName + '</span></a>, ...'; } } } } strIDs += '<br><br>' } } return strIDs } //--> </SCRIPT> </HEAD>
HTML Code:
<script language=Javascript1.2> document.write(YahooSections(sections)) </script>
I originally had references to "Act_section_tree.js" and (YahooSections(section_tree)) but Actinic had generated a js file called "Act_sections.js" so I changed the references to suit.
Any idea what I'm doing wrong and what to change?
TIA
Malcolm
Comment