View Full Version : need a genera html code for a spoiler I can make myself in my admincp
Dark Lycan
05-07-2012, 05:01 AM
well the title says it all, so can someone provide me with the html code I need to make my own spoiler?
Amaury
05-07-2012, 05:13 AM
well the title says it all, so can someone provide me with the html code I need to make my own spoiler?
All we really need, actually, is an icon. The one we have works, the button's just blank on the toolbar.
Dark Lycan
05-07-2012, 05:31 AM
All we really need, actually, is an icon. The one we have works, the button's just blank on the toolbar.
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.=/
BirdOPrey5
05-07-2012, 11:22 AM
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:
<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('d iv')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[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>
Dark Lycan
05-08-2012, 09:41 AM
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:
<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('d iv')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[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>
yes thats what a meant, ty so much bird your awesome.^_^
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.