Making documents collapsible is very easy:
An Example
- Open editor
- Follow this procedure
- Define structure using (e.g.)
<H1 CLASS="Header" ONCLICK="toggle-display" STYLE="cursor:hand">
<DIV CLASS="Details" STYLE="display:none">
...</DIV>
- Add JavaScript code
- Test it
- This procedure can be automated (e.g. in HoTMetaL Pro)
Try another example of DHTML