You might also want to take a look at how the examples look without the use of totxt:<br /><br />
<a href='http://projects.metanohi.name/totxt/example1.php?n'>Example 1 without totxt</a><br />
<a href='http://projects.metanohi.name/totxt/example2.php?n'>Example 2 without totxt</a><br />
<a href='http://projects.metanohi.name/totxt/example3.php?n'>Example 3 without totxt</a><br />
</p>
<p></p>
<p>totxt is free software; you can redistribute it and/or modify it under the terms of the <a href="http://www.gnu.org/licenses/gpl.html" rel="license">GNU General Public License</a> as published by the Free Software Foundation; either version 3 of the License, or (at your option)
any later version.</p>
<p></p>
<p>
totxt accepts two ways of ignoring default values: a global way, which has an effect on all totxt elements, and a local way, which only has an effect on a particular totxt element. <span class='b'>An example:</span><br />
Before running the <span class='code'>load_totxt_generator</span> function, define this inside a script tag:<br />
totxt_DYNAMIC = 0<br />
This will make all totxt elements dynamic, i.e. it will be possible to open and close totxt boxes. When closed, only the header is displayed, while in its open state, both the header, the subheader (if any) and the text will be visible. The 0 value means that all totxt elements first appear in their closed forms. Assigning a value of 1 will make all elements start out as open. Any other value than 0 or 1 will not work. Note that, by default, being dynamic also means that an element opens and closes in a sliding motion and that an element is opened by clicking on it and closed by doubleclicking on it.<br />
Another way to defy normal values is to locally define changes. Applying 'dynamic0' as a class to a totxt element, such that it will look something like:<br />
<p>Note that this will run when the page importing it has loaded. It is of course also possible to execute totxt code on other actions.</p>
<p><span class='code'>load_totxt_generator</span> can be run more than once, without any problems arising.</p>
<br />
<h1 class='totxt dynamic' style='color: #002244'>Important information (click to open)</h1>
<h2>Look no further!</h2>
<p>
totxt elements inherit all classes, any eventual id, and style if present, but only from the header element. When looking for text, totxt searches for subheader elements and text elements below the header element. If any other element than those appears, the search will halt. <span class='b'>An example:</span><br /><br />
<h1 class='totxt'>Header</h1><br />
<p>This will be used.</p><br />
<p>This will also be used.</p><br />
<blockquote><br />
I fell asleep reading a dull book, and I dreamt that I was reading on, so I woke up from sheer boredom.<br />
</blockquote><br />
<p>This will <span class='b'>not</span> be used.</p>