The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Advanced spoiler hidingt
Hello.
I have a spoiler BBCode at the moment but it only shows and hides. Basically, I want it to when pressed show the content(like it does), but then change the button text to "Hide Spoiler" and when clicked when showing hide the content again. Thank you, Code:
<div class="spoiler"><input type="button" class="button" onClick="this.nextSibling.nextSibling.style.display='block';this.parentNode.removeChild(this);" value="Show spoiler"> <span class="content" style="display:none">Bob is ugly.</span> </div> |
#2
|
|||
|
|||
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|