The Arcive of vBulletin Modifications Site. |
|
Custom Spoiler Details »»
|
|||||||||||||||||||||||||||
please leave feedback
... The following bbcode creates a spoiler which allows you to give a button a title then when the button is pressed it reveals the text inside Title: Code:
Spoiler Code:
Spoiler HTML Code:
<div> <div class="pre-spoiler"> <input type="button" value="{option}" style="width:450px;font-size:14px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = '{option}';}"> </div> <div> <div class="spoiler" style="display: none;"><div style="border: 1px solid ;">{param}</div></div> </div> </div> Code:
[spoiler=enter your title here]enter your text here[/spoiler] Code:
shows and hides text with the click of a button ENJOY! Screenshots
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
could you show a screen shot of before and after with the pressing of the button.
I just want to see how different this is to this: https://vborg.vbsupport.ru/showthread.php?t=207408 |
|
#3
|
|||
|
|||
|
oh dang someone beat me.. anyways mine has a fancier button. no box below it when its hiding and you dont need to put quotes around the custom name, so its more user friendly
ill try to get a screen shot |
|
#4
|
|||
|
|||
|
added screenshots
|
|
#5
|
||||
|
||||
|
thank you!
|
|
#6
|
|||
|
|||
|
Great job there OG, I will use this probably, also btw its .RevO from irtl :hehe:
|
|
#7
|
|||
|
|||
|
hehehehhehehehhehehehehhehehhahahahahahhaohohohoho hohohohoho!
|
|
#8
|
|||
|
|||
|
I am getting an error with this: "Expected ;". The button shows, but nothing happens when clicked.
|
|
#9
|
|||
|
|||
|
perhaps you entered a ' in the button title which is throwing off the code. or maybe you copy pasted it over weird
|
|
#10
|
|||
|
|||
|
Thank you. Yes, it had "Here's" in it. Is there a fix for that?
|
![]() |
|
|