The Arcive of vBulletin Modifications Site. |
|
Special Spoiler Details »»
|
|||||||||||||||||||||||||||
PLEASE CLICK INSTALL
Since nobody would do it for me I have coded it myself. First go add a new BBCode Title: Code:
Spoiler Code:
Spoiler HTML Code:
<script language='JavaScript' type='text/javascript'> <!-- function spoiler(obj) { for (var i = 0; i < obj.childNodes.length; i++) { if (obj.childNodes[i].id == 'idTitle') titleRow = obj.childNodes[i]; if (obj.childNodes[i].id == 'idSpoiler') { if (obj.childNodes[i].style.display != 'none') { obj.childNodes[i].style.display = 'none'; titleRow.innerHTML = ' <b>Click to show spoiler</b>'; } else { obj.childNodes[i].style.display = 'block'; titleRow.innerHTML = ' <b>Click to hide spoiler</b>'; } } } } //--></script> <div width="100%" class="alt1" onclick="spoiler(this);" style="border-collapse: collapse; border: solid thin black;"><div id="idTitle" class="alt2" style="border-collapse: collapse; border: solid thin black; width: 100%;"> <b>Click to show spoiler</b></div><div id="idSpoiler" style="display: none;">{param}</div></div><br /> Code:
[spoiler]Derek rules![/spoiler] Code:
Creates and hides text. DEMO: http://forum.i628.net/showpost.php?p=12&postcount=3 (If it's down it's probably due to host problems. Please look at screenshot instead if down. Screenshots
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
*Reserved*
|
|
#3
|
|||
|
|||
|
Quite a simple spoiler. i'm pretty sure there are many already on the site that have this, but one which has usergroup permissions would be nice.
|
|
#4
|
|||
|
|||
|
Trythe bbcode permissions mod?
|
|
#5
|
|||
|
|||
|
installed
|
|
#6
|
||||
|
||||
|
It didn't work for me.
|
|
#7
|
|||
|
|||
|
how could i make this NWS instead of spoiler, just rename everything?
|
|
#8
|
|||
|
|||
|
Won't work for me either.
|
|
#9
|
|||
|
|||
|
Hmm, I'm sure I fixed it.. Link to one that doesn't work? Also to replace the NWS name you can change "Click to show spoiler" to what you want and "Click to hide spoiler"
|
|
#10
|
||||
|
||||
|
Good, installed
|
![]() |
|
|