Spoiler

BBCodes simples, BBCode normal, BBCode simple
User avatar
GodSend
Site Admin
Posts: 42
Joined: November 14th, 2012, 7:30 pm

Spoiler

January 28th, 2016, 4:50 am

Description
Simple spoiler.

Settings
BBCODE USAGE:

Code: Select all

[spoiler="{INTTEXT}"]{TEXT}[/spoiler]


HTML REPLACEMENT:

Code: Select all

<dl class="codebox"><dt><a href="javascript:void(0);" onclick="var el = this.parentNode.parentNode.getElementsByTagName('dd')[0]; var v = el.style.display != 'none'; el.style.display = v ? 'none' : 'block'; this.innerHTML = (v ? '[+]' : '[−]') + ' {INTTEXT}'; ">[+] {INTTEXT}</a></dt><dd style="display: none;">{TEXT}</dd></dl>


HELP LINE:

Code: Select all

Hidden text: [spoiler="Title"]Hidden text[/spoiler]


Demo:

Code: Select all

[spoiler="Example"]Testing spoiler[/spoiler]

Example | +
Testing spoiler

Return to “Normal BBCodes”