Can anyone tell me how to use the YahooSections feature on non actinic pages?
Announcement
Collapse
No announcement yet.
How do I use YahooSections on non actinic pages?
Collapse
X
-
You need to include the javascript files that actinic uses to display the section tree. Add this into the <head> tag of your page:
Then you need to copy the YahooSections function into the page also, between another set of <script>...</script> tags. Once that's done, you can use the normal way to write the sections to the page:Code:<SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT> <SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree.js" TYPE="text/javascript"></script>
If your page is outside the acatalog directory, you'll have to edit the 'SRC' properties in the first block of code to point to the files within the acatalog directory.Code:<script type="text/javascript"> document.write(YahooSections(section_tree)) </script>
www.gbradley.co.uk
Web Development, Actinic Patches, Scripts & more
Comment