MyBB Community Forums

Full Version: BBCode - Please rework to MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

Please rework this BBCode at MyCode with the same appearance:

<div style="margin:20px; margin-top:5px">
          <div class="smallfont" style="margin-bottom:2px">
          <b>Spoiler</b>: <input type="button" value="Pokaż" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if(this.parentNode.parentNode.getElementsByTagName​('div')[1].getElementsByTagName('div')[0].innerHTML != '')
          {
            this.parentNode.parentNode.getElementsByTagNa​me('div')[1].getElementsByTagName('div')[0].innerHTML = '';
            this.value = 'Pokaż';
          }
          else
          {
            this.parentNode.parentNode.getElementsByTagNa​me('div')[1].getElementsByTagName('div')[0].innerHTML = this.parentNode.parentNode.getElementsByTagName('d​iv')[1].getElementsByTagName('div')[1].innerHTML;
            this.value = 'Ukryj';
          }; return false;
          ">
          </div>
          <div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
          <div></div><div style="display:none;">{TEXT}</div>
          </div>
          </div>


Thank you, best regards.
make a simple mycode but change {TEXT} to $1