Spoiler MyCode

This adds a black box, and the text is also black, so it's just a black box. But, when you roll your mouse over the black box, the text turns white, thus revealing the spoiler.


This adds a black box, and the text is also black, so it's just a black box. But, when you roll your mouse over the black box, the text turns white, thus revealing the spoiler.

Here's the MyCode:

MyCode Title: Spoilers
MyCode Description: Makes a black box with text that is also black, so it's a black box. When you roll your mouse over the box, the text turns white so you can read it.
Regular Expression:

Code:
\[spoiler\](.*?)\[/spoiler\]

Replacement:

Code:
<span style='color:#000000; background:#000000' onmouseover="style.color='#ffffff'" onmouseout="style.color='#000000'"><b>$1</b></span>

Activate MyCode? Yes

You're done!