![]() |
Classic button 'Spoiler' BB Code (NO INSTALL REQUIRED)
1 Attachment(s)
This is a classic button spoiler BB Code.
Title: Spoiler BB Code Tag Name: Spoiler Replacement: Code:
<div style="margin: 5px 20px 20px;"> <div class="smallfont" style="margin-bottom: 2px;"><b>Spoiler:</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" 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.innerText = ''; this.value = 'Show'; }" type="button" /> </div> <div class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px;"> <div style="display: none;"> {param} </div> </div> </div> Description: Allows you to hide text or images. Image Path: Choose an image and upload it to your server. Use {option}: No Remove Tag If Empty: Yes Disable BB Code Within This BB Code: No Disable Smilies Within This BB Code: No Disable Word Wrapping Within This BB Code: No Disable Automatic Link Parsing Within This BB Code: No Preview: https://vborg.vbsupport.ru/external/2012/10/2.png |
Installed, working, thanks.
But I could not get idea where we can use it? Hiding text with a show button, I think, it may be used to show the answer of a question after guess? |
Quote:
|
What is this button.?
https://vborg.vbsupport.ru/external/2012/12/21.png Isn't there supposed to be a image/button like the preview that says "Show" ? *edit* Nvm that is the button for when you're making a post. I used this one.. https://vborg.vbsupport.ru/external/2012/12/4.gif |
Error in mobile version vb 4.2 can't show the spoiler content / can't unhide...
|
Quote:
|
Quote:
|
works like a charm, thanks mate :)
|
No problem :)
|
I tried this code, but it seems there is something not correct. Everything is ok except that the button "show" when clicked nothing shows up. I mean spoiler is used to hide/show some text, right! so why this code doesn't do this job then!! or maybe I'm missing something here. please correct me if I'm wrong.
By the way, I did all exact steps many times, but still the hide/show function doesn't work... any idea? |
All times are GMT. The time now is 02:27 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|