1) Script Title:
sdmenu
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/slashdot.htm
3) Describe problem:
Alright. First, fantastic script... really cool. Thanks kindly to the creators.
My issue is: How do I get the appropriate child menu to expand depending on the current page, considering I have placed the script in an external javascript file and not in each page independently? (There are 75+pages on this site, so every time we add a page I do not wish to check-out and change 75 files)
Example: if you were to navigate to this page, http://www.earlylearning.ubc.ca/SDPP/ , you will see that the appropriate child menu at left is not expanded, and looks like this at present:
Now if you were to navigate to this page from the main page, because we have turned on the menu cookie it would look like this:
The question is, how to force the proper expansion of the appropriate child menu, instead of relying on a cookie to merely bring up the previous state of the menu?
If a user navigates to the subsection directly, we wish to have the menu be expanded as it should be. I can see how this is done if you paste the menu coding script into every page, but we have called it from one external script like this:
... and on the menu.js file, each html line in the sdmenu is returned via a document.write.Code:<script type="text/javascript" src="../menu.js"></script>
Any ideas?? Many thanks for taking the time to consider our issue.![]()



)

Reply With Quote

Bookmarks