Currently, I'm using this code:
Code:
<div>
<div class="pre-spoiler">
<input type="button" value="Show Text" style="width:80px;font-size:10px;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 = 'Show Text';}">
</div>
<div>
<div class="spoiler" style="display: none;">{param}</div>
</div>
</div>
Is there any way someone can create and or help me so I can use for example:
[spoiler="customtexthere"]textherethatshouldbehidden[/spoiler]
So the button will have a custom name rather than 1 name that it will stick with?