Sweet,very nice, but if there are two in the same post it causes an issue.
Example:
Quoting someone who used the spoiler code and then you using it too.
it would look like this.
Quote:
Quote:
Originally Posted by R1LOVER
Sweet Rinn, [spoiler]I also changed the style a bit... I like this better[/spoiler]
|
123456789
[spoiler]test double quote[/spoiler]
|
Here is what I used because it will work with multiple tags in one post.
Code:
<div style="margin:5px 20px 20px 20px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler:</b>
<input type="button" value="Show" style="width:45;font-size:10px;margin:0px;padding:0px; height:21" 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: 0px; border: 0px inset;">
<div style="display: none;">
{param}
</div>
</div>
</div>