The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
need a genera html code for a spoiler I can make myself in my admincp
well the title says it all, so can someone provide me with the html code I need to make my own spoiler?
|
#2
|
|||
|
|||
All we really need, actually, is an icon. The one we have works, the button's just blank on the toolbar.
|
#3
|
||||
|
||||
Yes but I want to create one so we have 2 cus khv has 2 different spoilers amaury, that way members and staff have 2 different choices to choose from like khv.=/
|
#4
|
||||
|
||||
Assuming you mean a BB Code...
Here is code for a simple spoiler.... based off of code that was here as re-usable at one time but was since deleted by the author it seems: Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px"> <strong>Spoiler</strong>: <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: 5px; border: 1px inset;"> <div style="display: none;"> {param} </div></div></div> |
#5
|
||||
|
||||
Quote:
yes thats what a meant, ty so much bird your awesome.^_^ |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|