MediaWiki talk:ShowHide2/code.js

Not clear about usage model
It took me a while to get around to testing your revised code. See this test page. If this did solve your specific problem it does not appear to be a solution for the general case. Specifically:
 * You need to use your personal monaco.js at that test wiki to specify which javascript to use and then your monaco.css to apply suitable styles.
 * 1) I cannot successfully separate the styles for the heading text from those for the span.collapseLink button.
 * 2) * This affects the center alignment of the header text as the width of the toggle button changes.
 * 3) The text used on either side of the span.collapseLink become part of the heading text.
 * 4) * This also affects the center alignment of the heading text.

Perhaps I haven't understood the usage model you intended but it seems to me that the fundamental problem of the heading text remaining in the same container as the span.collapseLink still persists.

-- najevi 03:44, November 22, 2009 (UTC)