Work great with 4.1.6. Thanks a lot. Easy to customize. Installed.
I adapted it slightly.
Spoiler close:
http://s3.imgimg.de/uploads/customsp...ab7c7a1jpg.jpg
Spoiler open:
http://s3.imgimg.de/uploads/customsp...1dea0dajpg.jpg
Code:
<div style="margin-top:5px; margin-buttom:5px;">
<div class="smallfont" style="margin-bottom:-1px; width:852; height:26"><right><font color="red"><b> </b></font></right>
<input type="button" value="Spoiler: {option}" style="color: #4E4E4E; background-color: #EAEAEA; border: 1px solid #CECECE; border-radius: 3px 3px 3px 3px; font-size: 11px; font-weight: bold; margin-top: 10px; padding: 5px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Spoiler: Inhalt verbergen'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Spoiler: {option}'; }">
</div>
<div>
<div style="display: none; background-color: #EAEAEA; border: 1px solid #CECECE; border-radius: 3px 3px 3px 3px; padding: 10px;">
{param}
</div>
</div>
</div>
But i think its better to outsource the css code.