2006-10-10, 12:17 AM
Hi,
I have a simple spoiler tag implemented using 'MyCode'
Regular expression
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]](https://camo.mybb.com/cf8cd0cdf69c2787c846e3550f9e0f3655d6f10d/687474703a2f2f7777772e66696c6564656e2e636f6d2f66696c65732f323030362f362f352f35323635322f706963312f737073686f772e706e67)
then the button changes to [Hide], click it again to hide the spoiler:
![[Image: sphide.png]](https://camo.mybb.com/e71d2a0bf36a31d5a74618a7dbd1ee23fd13a7e6/687474703a2f2f7777772e66696c6564656e2e636f6d2f66696c65732f323030362f362f352f35323635322f706963312f7370686964652e706e67)
Thanks!
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:
then the button changes to [Hide], click it again to hide the spoiler:
Thanks!