need help with a bbcode

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Tony Stark
Registered User
Posts: 516
Joined: Thu Apr 08, 2010 8:22 pm

need help with a bbcode

Post by Tony Stark »

don't know if anything can be done about this. just wondering. it's this bbcode for spoilers.

Code: Select all

<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em;"><div style="text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;"><span 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.innerHTML = '<b><font color=#0000ff>Spoiler: </font></b><a href=\'#\' onclick=\'return false;\'><font color=#ff0000>hide</font></a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b><font color=#0000ff>Spoiler: </font></b><a href=\'#\' onclick=\'return false;\'><font color=#00ff00>show</font></a>'; }" /><b><font color=#0000ff>Spoiler: </font></b><a href="#" onClick="return false;"><font color=#00ff00>show</font></a></span></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>
it works fine, only when i point to show, which is green, the underline is red. when i point to hide, which is red, the underline is red, which is fine, but i want the underline to be green when i point to show which is green. this possible? wrong place to ask?
Locked

Return to “[3.0.x] Support Forum”