Jump to content


  • Tutorial info Visit support topic

    • Added on: Oct 22 2005 09:42 AM
    • Date Updated: May 30 2006 02:37 PM
    • Views: 15696

    * * * * *
    7 Ratings

    Spoiler (expand/collapse)

    Create a spoiler tag that you can expand/collapse

    Posted by Michael on Oct 22 2005 09:42 AM
    Here's a custom bbcode to make a spoiler tag on your board.

    This creates a box that you can expand and collapse to show or hide the text. It's a bit flashier than the ones that you just highlight, but everyone has their preferences as to which they prefer.

    Custom BBCode Title: Spoiler Tag
    Custom BBCode Description: Used to hide text, simply click the Spoiler link to make the text visible.
    Custom BBCode Example:
    [spoiler]Kevin Spacey IS Keyser Soze![/spoiler]
    Custom BBCode Tag: spoiler
    Use Option in tag?: No
    Custom BBCode Replacement:
    <script type='text/javascript'>
    mytagid = Math.floor( Math.random() * 100 );
    document.write("<div style='padding:4px;border:1px dotted black'><a href='#' onclick='toggleview("+'"'+mytagid+'_closed'+'"'+");return false;'>[SPOILER]</a><font size=0><-- click on 'spoiler' to show/hide the spoiler</font><br /><div id='"+mytagid+"_closed' style='display:none'><br />{content}<br /> <br /><a href='#' onclick='toggleview("+'"'+mytagid+'_closed'+'"'+");return false;'><font size=1>[close spoiler]</font></a></div></div>");


    Powered by Tutorials 1.4.1 © 2016, by Michael McCune
    IPB Skin By Virteq