| These tables are all coded with PHP Loops. These table templates can be used for your table art, and by changing a few of the parameters, you can achieve different effects. Gradangles work well, as well as audioscopes. The Table is shown at a small size which you can easily change by changing the number of rows and columns in the code. The PHP code for each has highlighted sections in yellow as to what can be changed in the code. CCP these for your own personal use. When you CCP, take note of what you can change as the highlighted color can't be taken with you. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
PLAIN <?php print("<table border=1 cellspacing=0 cellpadding=3>\n"); $rowsDown=12; $row=1; while($row<=$rowsDown){ print("<tr>\n"); $row++; $rowsAcross=5; $column=1; while($column<=$rowsAcross){ print("<td bgcolor=ffff00 align=center width=10 height=10>"); print("</td>"); $column++;} print("</tr>\n");} print("</table>\n"); ?> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
ALTERNATE <?php echo "<table border=0 cellspacing=0 cellpadding=0>"; $rowsDown=12; $x=1; while ($x<=$rowsDown){ echo "<tr>"; $rowsAcross=1; $alt1="ff0000 gradangle=180 width=10"; $alt2="0000ff gradangle=90 width=20"; $alternating=$alt1; while($rowsAcross < 6){ print "<td bgcolor=000000 gradcolor=$alternating height=20></td>"; $rowsAcross = $rowsAcross + 1; if($alternating==$alt1){ $alternating=$alt2; } else { $alternating=$alt1; } } echo "</tr>"; $x++; } echo "</table>"; ?> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
CHECKERBOARD <?php echo "<table bgcolor=ffff00 cellspacing=0 cellpadding=5>"; $rowsDown=12; $x=1; while ($x<=$rowsDown){ print "<tr>"; $rowsAcross=1; $alt1="ff0000"; $alt2="0000ff"; while($rowsAcross < 8){ $rowsAcross = $rowsAcross + 1; if (($x+$rowsAcross)%2==$alt1){ $alternating=$alt1;} else { $alternating=$alt2; } print "<td bgcolor=000000 gradangle=10 height=10 width=10 gradcolor=$alternating></td>"; } print "</tr>"; $x++; } echo "</table>"; ?> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||