Yet another spoiler tag
#1
Hi,

I have a simple spoiler tag implemented using 'MyCode'

Regular expression
\[spoiler\](.*?)\[/spoiler\]
Relacement
<div style="font-weight: bold; color: grey; background-color: grey;">$1</div>

This generally works well, except that I cannot hide images/color characters.

So I am requesting a click-to-view spoiler tag (maybe used with [spoiler2] tag)

all spoiler section is initially hidden, user has to click on [Show] button to show it:
[Image: spshow.png]
then the button changes to [Hide], click it again to hide the spoiler:
[Image: sphide.png]

Thanks!
Reply
#2
http://www.mybbcentral.com/showthread.php?tid=2

A complete spoiler tag with mouseover.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)