Pues si, con este bbcode podemos poner una paleta de colores hexadecimales en nuestro foro y lo haremos asi :
Uso de BBCode :
- [colores]{TEXT}[/colores]
Reemplazo HTML :
- <p align="center"><!--webbot
- bot="HTMLMarkup" startspan --><table width="80%">
- <script language="javascript">
- var r = new Array("00","33","66","99","CC","FF");
- var g = new Array("00","33","66","99","CC","FF");
- var b = new Array("00","33","66","99","CC","FF");
-
- for (i=0;i<r.length;i++){
- for (j=0;j<g.length;j++) {
- document.write("<tr>");
- for (k=0;k<b.length;k++) {
- var nuevoc = "#" + r[i] + g[j] + b[k];
- document.write("<td bgcolor=\"" + nuevoc + "\" align=center>");
- document.write(nuevoc);
- document.write("</td>");
- }
- document.write("</tr>");
- }
- }
- </script>
- </table>
- <br>
- <font size="2" face="Arial"><strong>16 Colores estandar</strong></font></p>
- <p align="center"><!--webbot bot="HTMLMarkup" startspan --><table border="1" cellspacing="0" id="table1">
- <tr align="center">
-
- <td bgcolor="black" width="99"><font color="white">
- <font size="2">BLACK</font></font><font size="2"> </font>
- </td>
- <td bgcolor="navy" width="99"><font color="white">
- <font size="2">NAVY</font></font><font size="2"> </font>
- </td>
- <td bgcolor="blue" width="99"><font size="2">BLUE
- </font>
-
- </td>
- <td bgcolor="teal" width="99"><font size="2">TEAL
- </font>
- </td>
- <td bgcolor="aqua" width="99"><font size="2">AQUA
- </font>
- </td>
- </tr>
- </table>
- <table border="1" cellspacing="0" id="table2">
-
- <tr align="center">
- <td bgcolor="silver" width="99"><font size="2">SILVER
- </font>
- </td>
- <td bgcolor="gray" width="99"><font size="2">GRAY
- </font>
- </td>
- <td bgcolor="yellow" width="99"><font size="2">YELLOW
- </font>
- </td>
-
- <td bgcolor="green" width="99"><font size="2">GREEN
- </font>
- </td>
- <td bgcolor="olive" width="99"><font size="2">OLIVE
- </font>
- </td>
- <td bgcolor="lime" width="99"><font size="2">LIME
- </font>
- </td>
- </tr>
-
- </table>
- <table border="1" cellspacing="0" id="table3">
- <tr align="center">
- <td bgcolor="red" width="99"><font size="2">RED
- </font>
- </td>
- <td bgcolor="maroon" width="99"><font color="white">
- <font size="2">MAROON</font></font><font size="2"> </font>
-
- </td>
- <td bgcolor="white" width="99"><font size="2">WHITE
- </font>
- </td>
- <td bgcolor="fuchsia" width="99"><font size="2">FUCHSIA
- </font>
- </td>
- <td bgcolor="purple" width="99"><font size="2">PURPLE
- </font>
- </td>
-
- </tr>
- </table>
Línea de ayuda :
Solo pinchar en el bbcode.
Preferencias
Mostrar en mensajes : solo marcar si queremos que se vea nuestro bbcode en los mensajes.
El ejemplo :
16 Colores estandar
|
BLACK
|
NAVY
|
BLUE
|
TEAL
|
AQUA
|
| SILVER
|
GRAY
|
YELLOW
|
GREEN
|
OLIVE
|
LIME
|
| RED
|
MAROON
|
WHITE
|
FUCHSIA
|
PURPLE
|
Espero os guste.