Help with Spoiler...
#2
Try this

\[spoiler=(.*?)\](.*?)\[/spoiler\]

<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b> for <i>$1</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;">
$2
</div>
</div>
</div>

[spoiler=Title]Text[/spoiler]
My Newest plugin: FB-Bonus

[Image: DwYVW.png]
Reply


Messages In This Thread
Help with Spoiler... - by Iamazn - 2011-04-09, 12:32 AM
RE: Help with Spoiler... - by Fanatic - 2011-08-15, 07:06 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)