BBCode Usage:
Code: Select all
[table2={COLOR1},{COLOR2},{SIMPLETEXT}]{TEXT}[/table2]
Code: Select all
<script language="Javascript">
var texto = "{TEXT}"';
texto = texto.replace("\r\n","");
texto = texto.replace("<br>","");
texto = texto.replace(" ","");
var linha = new Array();
linha = texto.split('L=');
var table = '<tbody style="align:none;"><TABLE width=auto cellpadding=1px cellspacing=1px border=0px>';
for (var i=1; i<linha.length; i++)
{
table = table + '<TR>';
var coluna = new Array();
coluna = linha[i].split('|');
for (var j=0; j<coluna.length; j++)
{
table = table + '<TD style="background: {COLOR1}; border: 0px {COLOR2} solid; padding:1px; vertical-align: middle; font-family: {SIMPLETEXT};">' + coluna[j].replace("amp;","") + '</TD>';
}
table = table + '<TR>';
}
table = table + '</TABLE></tbody>';
document.write(table);
</script>