Back to vBulletin 4.x Add-ons

Spoiler Tag
Mod Version: 1.00, by ChopSuey

vB Version: 4.0.x Rating: (10 votes - 4.70 average) Installs: 77
Released: 27 May 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

Title: Spoiler Tag

BBCode Tag Name: spoiler

Replacement:
HTML Code:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px; width:852; height:26"><right><font color="red"><b>&nbsp;</b></font></right>  
<input type="button" value="Show Spoiler" style="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>
Example: [spoiler]testing testing[/spoiler]

Descpription: Hide large images or just text.

Set all options to NO (If any options have yes selected, it will not work. Enjoy!

---------------------------------------------------------------------------------------------------------------------
It at first says, "Show Spoiler" - "Hide" - After clicking it just says "Show"

Download

No files for download.

Similar Mods

New Posting Features Spoiler Tag vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024