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


Messages In This Thread
Yet another spoiler tag - by ElTopo - 2006-10-10, 12:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)