Spoiler BBCode

A selection of BBCodes for use on your phpBB3 Forums.
  • Advertisement

Bookmark and Share

Re: Spoiler BBCode

Postby ficolas » Sun Apr 22, 2012 1:15 pm

I have a better spoiler, becouse it allows you to put a custom text on "Spoiler"
BBCode:
Code: Select all
[spoiler={SIMPLETEXT}]{TEXT}[/spoiler]

HTML Code:
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>{SIMPLETEXT}: </b><a href=\'#\' onClick=\'return false;\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>{SIMPLETEXT}: </b><a href=\'#\' onClick=\'return false;\'>show</a>'; }" /><b>{SIMPLETEXT}: </b><a href="#" onClick="return false;">show</a></span></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>


NOTE: I just edited the code, not by me.

For this message the author ficolas has received thanks:
LDM
User avatar
ficolas
Forum Member
Forum Member
 
Posts: 1
Joined: April 2012
Has thanked: 0 time
Have thanks: 1 time

Re: Spoiler BBCode

Postby cisco007 » Sun Apr 22, 2012 9:07 pm

thanks seems like one i have on my other support forum!
Image
Image
User avatar
cisco007
Staff
Staff
 
Posts: 498
Joined: October 2008
Has thanked: 13 times
Have thanks: 31 times
Daring

Previous


  • Advertisement

Return to PhpBB3 BBCodes



Who is online

Users browsing this forum: No registered users and 1 guest


Subscribe to the ModphpBB3 Forum RSS
cron