Announcement

Collapse
No announcement yet.

Spoiler tags working inconsistently...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Shane.
    replied
    Ok, I found the problem. When "use" is clicked yes, then only sample 2 works. When "use" is no, then only sample 1. Any idea how to get BOTH samples to work?

    If I duplicated it would that work or just confuse the software?

    Leave a comment:


  • Shane.
    started a topic Spoiler tags working inconsistently...

    Spoiler tags working inconsistently...

    OK, I use this same EXACT code on 2 forums. One is 3.6.2 and the other is 3.6.4.

    2 sample usages:
    1. [spoiler]He dies![/spoiler]
    2. [spoiler=Jack's fate!]He dies![/spoiler]

    For forum using 3.6.2 sample 1 does not work, but sample 2 does. For forum using 3.6.4, sample 2 works, but sample 1 doesn't.

    Obviously, I'm guessing its something in the difference between the two versions, but I can't figure it out. Any help would be appreciated.

    Code:
    <div style="margin:20px; margin-top:5px">
    <div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b> for <i>{option}</i>: <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: 6px; border: 1px inset;">
    <div style="display: none;">
    {param}
    </div>
    </div>
    </div>

Related Topics

Collapse

Working...
X