How can I add a BBcode with this function:
[code filename="Javascript"]
function showSpoiler(block) {
// by The Small One
block.nextSibling.nextSibling.style.display ="block";
block.parentNode.removeChild(block);
}
[/code]
And then, the code syntax will be like this:
- Code: Select all
<div class="spoiler">
<input type="button" class="button" onClick="showSpoiler(this);" value="Ver SPOILER">
<span class="content" style="display:none">{param}</span>
</div>
So, the BBcode ends up like this:
[spoiler]{parameter}[/spoiler]
I have this on my site, but I dunno how to insert it into my phpBB forum.
Can somebody help me?


