


japankaizen wrote:I am sorry. I don't know much about coding. Where am I suppose to put that code to activate spoiler on my forum??![]()
[spoiler]{TEXT}[/spoiler]

It works perfect.. 

Sniper_E wrote:teenpspjunkie,
Just replace your word "blah" to {TEXT2}And in the HTML Replacement replace the word "Spoiler" to {TEXT2}
- Code: Select all
[spoiler={TEXT2}]{Text}[/spoiler]
- 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>{TEXT2}: </b><a href=\'#\' onClick=\'return false;\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Spoiler: </b><a href=\'#\' onClick=\'return false;\'>show</a>'; }" /><b>Spoiler: </b><a href="#" onClick="return false;">show</a></span></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>



[spoiler]{TEXT}[/spoiler]<SPAN style="background-color:#000000;color:#000000" onmouseover="this.style.color='#FFFFFF';" onmouseout="this.style.color=this.style.backgroundColor='#000000'">{TEXT}</span>[spoiler]{TEXT}[/spoiler] hides a section of text until touched by mouse



ElbertF wrote:Sorry to hijack your thread, but I perfected your code.. This one uses CSS (and proSilver markup-style) so it adapts to the style and is simpler.
- Code: Select all
<dl class="codebox"><dt>Spoiler: <a href="javascript: void(0);" onClick="var spoiler = this.parentNode.parentNode.getElementsByTagName('dd')[0]; if ( spoiler.style.display == 'none' ) { spoiler.style.display = 'block'; this.innerHTML = 'hide'; } else { spoiler.style.display = 'none'; this.innerHTML = 'show'; };">show</a></dt><dd style="display: none;">{TEXT}</dd></dl>







patrikStar wrote:Example:
http://gfx-pros.com/phpBB3rc1/viewtopic.php?f=3&t=4
BB Usage:
- Code: Select all
[spoiler]{TEXT}[/spoiler]

Users browsing this forum: No registered users and 7 guests