Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: Apr 06 2009 10:45 PM
    • Date Updated: Apr 06 2009 11:06 PM
    • Views: 1283
     


    * * * * *
    1 Ratings

    Spoiler(Spand/Collapse)

    By gfdant~ 2.2.x and 2.3.x

    Posted by SOS Gfdant on Apr 06 2009 10:45 PM
    First go into add new BBCode

    Custom BBCode Title: Spoiler
    Custom BBCode Description: Spand and Collapse
    Custom BBCode Example:
    Spoiler

    Custom BBCode Tag: Spoiler
    Custom BBCode Replacement:
    [color="#FF0000"]<div style="margin:0px 0px 0px 0px">
    <div class="smallfont" style="margin-bottom:0px">
    <input type="button" value="Mostrar" style="width:75px;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 = 'Esconder'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Mostrar'; }">
    </div>
    <div style="margin: 0px; padding: 0px; border: 0px inset;">
    <div style="display: none;">
    {content}
    </div>
    </div>
    </div>[/color]

    Insert into the editor's' Insert Special 'menu?: Yes

    Method of use:
    Spoiler


    By gfdant~ from Brazil SOSInvision

    Powered by Tutorials 1.4.1 © 2012, by Michael McCune