I have a document that hides a section until the user clicks on the link for that text or the show all link. The code works like a champ, the problem is that I have another document that links to some of the code that is being hidden. Because the text is hidden, the link goes to a random place somewhere near the actual link but because the text is hidden, it may be 3 or 4 places below the actual link. Is there a way to know when the other document has called this section and have it open up automatically? As an example, I have a section called processors in document A, when it is closed, the user just sees the word processors with a Plus sign next to it. When they click on the processor link, the Plus sign change to minus and the text is displayed below the processor section. There is another document, document B that has a link to the processor section in document A. If I click on the link in document B, it goes to document A but then just goes to a random section because the processor section is closed. The code is using the getElementsByName and then changing the style.display.
The actual text is wrapped in a div tag and using a more comment to determine the end of the link and the beginning of the text to hide. This allows people who have javascript disabled to see the text normally without the graphic symbols. One of the issue that complicates things is that the javascript code that would wrap the links and the text to be hidden isn’t created until the body is loaded into the Web browser, then a javascript code is used to search for the Div code and literally create the HTML code for the links and hiding of the text on the fly. This makes easier to maintain and update the document itself.