Back to vBulletin 3.7 Add-ons

Spoiler BB Code
Mod Version: 1.00, by finalcuthalo

This modification is in the archives.
vB Version: 3.7.2 Rating: (4 votes - 4.75 average) Installs: 36
Released: 06 Aug 2008 Last Update: Never Downloads: 6
Not Supported Re-usable Code  

Spoiler BB Code

A simple spoiler BB Code with a show/hide button.

Usage:
Code:
[spoiler]the cake is a lie[/spoiler]
Tag Name: Spoiler
Replacement:
HTML Code:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b> <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>

Download

No files for download.

Similar Mods

Mini Mods Better Spoiler bb code vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024