View Single Post
Old 11-07-2011, 11:25 PM   #14 (permalink)
Hershey
HersheysBlog.com
 
Hershey's Avatar
 
Join Date: Nov 2011
Posts: 15
Thanks: 0
Hershey is on a distinguished road
Default vBulletin Spoiler Code

Any way you could add a spoiler code?

Maybe an advance one. Here is one I just typed up. I'm not sure if it works because I haven't tested it.

Here is the replacements:
Code:
<div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler!</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElements ByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline'){ this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }else{ this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset ; padding: 6px;">
<div class="spoiler" style="display: none;"></div>
</div>
</div>
Send a message via MSN to Hershey Send a message via Skype™ to Hershey
Hershey is offline  
Reply With Quote