Title: Spoiler
BB Code Tag Name Spoiler
Replacement
Code: Select all
<div>
<div class="pre-spoiler">
<input type="button" value="Click Me" style="width:450px;font-size:14px;margin:0px;padding:0px;" 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 = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'Click Me';}">
</div>
<div>
<div class="spoiler" style="display: none;"><div style="border: 1px solid ;">{param}</div></div>
</div>
</div>
Shows and hides text with the click of a button
Use {option} No
Button Image (optional) - Depends on whether you want an image for the spoiler tag in your WYSIWYG editor or not. If yes please specify a path to your button image.
Save the bbcode and you are done
Tell me if it works.