Quote:
Originally Posted by thisgeek
I've modified this one so that you can use it inline in a paragraph:
Code:
<span>
<span style="margin-bottom: 5px;">
<input type="button" value="Show Spoiler" style="width:80px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.value=='Show Spoiler') { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = '';this.innerText = ''; this.value = 'Hide Spoiler'; } else { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = 'none'; this.value = 'Show Spoiler';}">
</span>
<span>
<span style="border: 1px dashed #0B198C; padding: 0 3px 0 3px; display: none;">{param}</span>
</span>
</span>
|
This is my favorite one. How can we make it so that the spoilerized text is a different color? Like blue, or gray? That'd be wonderful.