Page 1 of 1

Simple Hidden Spoiler Text BBCode

Posted: Sun Jan 25, 2009 6:53 pm
by LDM
This is a very much simple spoiler than to the other posted within our BBCode forum. This will hide text until you click the text to show the spoiler.
You must first add the text you want to show then close it with a ] then add the hiding text.

BBCode Usage:

Code: Select all

[hiddenspoiler={TEXT1}]{TEXT2}[/hiddenspoiler]
HTML Replace:

Code: Select all

<span onclick="if (this.innerHTML != '{TEXT1}') { this.innerHTML = '{TEXT1}' } else { this.innerHTML = '{TEXT2}'}">{TEXT1}</span>
Helpline:

Code: Select all

A Simple Spoiler for Text in posts.
Example Embed:

Code: Select all

[hiddenspoiler=Add your text to make people click]Add here the text you want to hide[/hiddenspoiler]
Example as above:

Add your text to make people click