HTML Code:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b> for <i>{option}</i>:
<input type='button' value="Show" style="width:45px;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.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
{param}
</div>
</div>
</div>
Above is my code.
It all works. However, I want to change something. Is it possible to change the "Button" to show instead ">> Spoiler Open <<" odviously spoiler will open. Then to close it would chante to ">> Spoiler Close <<".
Thanks.
__________________
>> Higher a poor college student. PM me :). PHP/MySQL <<
Last edited by Red_X_ : 03-18-2007 at 06:51 PM.
|