PDA

View Full Version : Spoiler vB Code.


Slynderdale
08-28-2002, 03:10 AM
Heres a neat pop up spoiler tag as seen here:
http://www.ls1.com/forums/showthread.php?threadid=110647


vB Code tag: spoiler

vB Code replacement:

<INPUT onclick="alert('{param}')" type=button value="{option}">


vB Code example:

<INPUT onclick="alert('yes!')" type=button value="Is this a test?">


Use {option} ?: yes

bonnmac
08-28-2002, 03:50 AM
I'm having terrible luck at getting things to work today.... :( I've added the code now what do I type to make it work?

Slynderdale
08-28-2002, 04:07 AM
[ spoiler=What is 2+2? ] 4 [ /spoiler ]

without the spaces

bonnmac
08-28-2002, 04:13 AM
Thanks! Finally something works for me today... LOL

yzztik
08-31-2002, 02:14 AM
Is there a limit of characters they can enclose in the spoiler pop up? Like if they put a whole paragraph will it cause problems?

SgtSling
09-01-2002, 06:49 PM
is there anyway that we can make a popup for this for the codebuttons template?
That way it is easier for the members to use?

SgtSling
03-05-2003, 11:56 AM
bump

Zzed
03-08-2003, 05:31 PM
OMG, I had no idea something I made would be even referred to on VB.org. :D

Thank you Slynderdale.

Rufus69
03-10-2003, 05:20 PM
another way to do this in browsers with javascript disabled is:


Spoilers Highlite to read.
<br>_________________________<br>
<font style=background-color:#000000; color:#000000;> {param}</font>

SgtSling
04-04-2003, 04:03 AM
i am still wondering how we could add this to the vbcode buttons

Cyricx
04-10-2003, 07:56 PM
Either I seem to have a problem in the code? or this is just the limitations of the button?

The code breaks when you use ' or "

The button either doesn't show up and the code all shows up if you use it in spoiler= (here) or the button shows up but doesn't work when you click it when you enter it ](here)[/spoiler

MUG
04-10-2003, 08:12 PM
I don't recommend using this, because it can be exploited to run JavaScript of the user's choice.

Example of a possibility

or

click here

SgtSling
04-12-2003, 04:22 AM
i am still wondering how we could add this to the vbcode buttons

monstergamer
06-02-2003, 05:59 PM
04-12-03 at 01:22 AM SgtSling said this in Post #13 (https://vborg.vbsupport.ru/showthread.php?postid=380923#post380923)
i am still wondering how we could add this to the vbcode buttons
same here

monstergamer
06-19-2003, 11:59 PM
no one can make this into a button
so people can just click on it?