The Arcive of vBulletin Modifications Site. |
|
![]() |
|||||||||||||||||||||||||
Title: Spoiler Tag
BBCode Tag Name: spoiler Replacement: HTML Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px; width:852; height:26"><right><font color="red"><b> </b></font></right> <input type="button" value="Show Spoiler" style="font-size:10px;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.innerText = ''; this.value = 'Show'; }"> </div> <div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> <div style="display: none;"> {param} </div> </div> </div> Descpription: Hide large images or just text. Set all options to NO (If any options have yes selected, it will not work. Enjoy! --------------------------------------------------------------------------------------------------------------------- It at first says, "Show Spoiler" - "Hide" - After clicking it just says "Show" Show Your Support
|
Благодарность от: | ||
Digital Jedi |
Comments |
#2
|
||||
|
||||
![]()
Any pics of this in action, both open and closed?
|
#3
|
|||
|
|||
![]()
tagged and thanks
edit untag and installed |
#4
|
|||
|
|||
![]()
I'll post up pics later.
|
#5
|
|||
|
|||
![]()
We have discussed it in PM already. You and some other anonymous person are accusing me of stealing code, which myself would never do.
|
#6
|
|||
|
|||
![]()
your code
Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px; width:852; height:26"><right><font color="red"><b> </b></font></right> <input type="button" value="Show Spoiler" style="font-size:10px;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.innerText = ''; this.value = 'Show'; }"> </div> <div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> <div style="display: none;"> {param} </div> </div> </div> code from this spoiler https://vborg.vbsupport.ru/showthrea...hlight=spoiler Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px"> <u>Spoiler</u>: <input type="button" value="Show" style="width:45px;font-size:10px;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.innerText = ''; this.value = 'Show'; }"> </div> <div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> <div style="display: none;"> {param </div> </div> </div> a tiny difference in the style is all I see Code:
<div class="smallfont" style="margin-bottom:2px; width:852; height:26"><right><font color="red"><b> </b></font></right> ![]() |
#7
|
|||
|
|||
![]()
I didn't edit out my first post to change it. Told you already i have talked to the person who made the "other" code.
|
#8
|
||||
|
||||
![]()
Says show spoiler even after opening the spoiler, somethings not right in the code
|
#9
|
|||
|
|||
![]() Quote:
|
#10
|
|||
|
|||
![]()
I will update the code....sorry.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|