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. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Reserved for future use.
|
|
#3
|
|||
|
|||
|
What is it for?
|
|
#4
|
|||
|
|||
|
It's a spoiler.. Where you can hide text from people and they can choose to view it by clicking on the bar.
|
|
#5
|
|||
|
|||
|
I added a demo.
|
|
#6
|
|||
|
|||
|
yeah very nice work! its good to see this again.
|
|
#7
|
|||
|
|||
|
Thanks for the props.
|
|
#8
|
||||
|
||||
|
i dont underestand ! please explain more
what file i must edit ? tanks |
|
#9
|
|||
|
|||
|
You add this code into the BBcode manager found in your adminCP.
|
|
#10
|
||||
|
||||
|
Any chance of putting up a demo, that doesnt require us to see 50 million adverts, messages and popups. Please
|
![]() |
|
|