2012-01-07, 01:56 AM
Tested with 1.6.5 I coded this for vBulletin and then edited a few things
Title: spoiler
Description: spoiler
Regular Expression: \[spoiler\](.*?)\[/spoiler\]
Replacement:
Demo: http://cyrixtestz.binhoster.com/showthread.php?tid=1
Title: spoiler
Description: spoiler
Regular Expression: \[spoiler\](.*?)\[/spoiler\]
Replacement:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px; width:852; height:26"> <span> <b>Spoiler</b>: </span> <input type="button" class="button" value="Show" 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;"> $1 </div> </div> </div>
Demo: http://cyrixtestz.binhoster.com/showthread.php?tid=1