Skyrider
10-09-2008, 10:51 AM
Currently, I'm using this 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('d iv')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[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:
textherethatshouldbehidden
So the button will have a custom name rather than 1 name that it will stick with?
<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('d iv')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[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:
textherethatshouldbehidden
So the button will have a custom name rather than 1 name that it will stick with?