jhendrickson
09-21-2006, 04:31 PM
1) Script Title: Sucker Tree Vertical Menu
2) Script URL (on DD): http://www.dynamicdrive.com/style/csslibrary/item/suckertree-menu-vertical/
3) Describe problem:
I'm not a pro by any means, so please bear with me. I'm using this awesome bit of script to display a Policy and Procedure manual. Here's the scoop:
index.html contains "the css" portion of this script. The index.html file loads the header of the page, which contains a flash animation which also has navigation tabs. Below the header is a frame labelled as "cont". When you load the index.html, it pulls iframe_0.html into this frame. iframe_0.html is where "the html" portion of Sucker Tree is at.
When you fire up index.html, everything loads correctly and the menu works properly. If I navigate to another tab, (i.e. iframe_1.html) and then try to return to the main page (iframe_0.html), the frame loads correctly but only the first level of the Sucker Tree is displayed. From what I can gather, and this may or may not be correct, it is not executing buildsubmenus() properly when the frame is loaded.
There is a function in each iframe_*.html that is loaded by <body onload="load_content()">.
I've tried modifying this statement to read as <body onload="load_content(); buildsubmenus()"> to get it to load the rest of the Sucker Tree but the only change that occurs is the arrow(http://www.dynamicdrive.com/cssexamples/media/arrow-list.gif) will load but I still cannot navigate into sub menus.
I've tried putting the entire script into just the iframe_0.html but it will not load properly unless it is in index.html. Even if I have it in both files, it will not function once you've navigated away from the main page and then try to return to it.
How can I fix this?
Thanks in advance for your help, and thank you for such a wonderful script.
2) Script URL (on DD): http://www.dynamicdrive.com/style/csslibrary/item/suckertree-menu-vertical/
3) Describe problem:
I'm not a pro by any means, so please bear with me. I'm using this awesome bit of script to display a Policy and Procedure manual. Here's the scoop:
index.html contains "the css" portion of this script. The index.html file loads the header of the page, which contains a flash animation which also has navigation tabs. Below the header is a frame labelled as "cont". When you load the index.html, it pulls iframe_0.html into this frame. iframe_0.html is where "the html" portion of Sucker Tree is at.
When you fire up index.html, everything loads correctly and the menu works properly. If I navigate to another tab, (i.e. iframe_1.html) and then try to return to the main page (iframe_0.html), the frame loads correctly but only the first level of the Sucker Tree is displayed. From what I can gather, and this may or may not be correct, it is not executing buildsubmenus() properly when the frame is loaded.
There is a function in each iframe_*.html that is loaded by <body onload="load_content()">.
I've tried modifying this statement to read as <body onload="load_content(); buildsubmenus()"> to get it to load the rest of the Sucker Tree but the only change that occurs is the arrow(http://www.dynamicdrive.com/cssexamples/media/arrow-list.gif) will load but I still cannot navigate into sub menus.
I've tried putting the entire script into just the iframe_0.html but it will not load properly unless it is in index.html. Even if I have it in both files, it will not function once you've navigated away from the main page and then try to return to it.
How can I fix this?
Thanks in advance for your help, and thank you for such a wonderful script.