Expanding Text

1000023958.jpg
Description
With this BBcode you can create a text which reveals on click another text behind the clickable text
both textes can be modified
If you want to rename the function (right now it is [htext] you can just replace htext with whatever you want!

Public performance attribution has been waived.

Settings

BBCode Usage: Select all
[htext={TEXT1}]{TEXT2}[/htext]

HTML Replacement: Select all
<span onclick="if(this.nextElementSibling.style.display=='none'){this.nextElementSibling.style.display='inline'}else{this.nextElementSibling.style.display='none'}" style="color: blue; cursor: pointer; font-weight: bold;">{TEXT1}</span><span style="display:none"> {TEXT2}</span>

Help Line: Select all
Creates a hidden text box with a custom trigger. Use [htext=Trigger Text]Hidden text here[/htext].
1000023957.jpg
  • Revisions
    Version
    phpBB Version(s)
  • Release
    1.0.0
    3.3.x
    Validation time: Jan 01, 2025 10:40 pm

    BBCode Usage: Select all
    [htext={TEXT1}]{TEXT2}[/htext]

    HTML Replacement: Select all
    <span onclick="if(this.nextElementSibling.style.display=='none'){this.nextElementSibling.style.display='inline'}else{this.nextElementSibling.style.display='none'}" style="color: blue; cursor: pointer; font-weight: bold;">{TEXT1}</span><span style="display:none"> {TEXT2}</span>

    Help Line: Select all
    Creates a hidden text box with a custom trigger. Use [htext=Trigger Text]Hidden text here[/htext].