<html> <head> <div style="color:gold"><br> <H2> <em> Таблица случайно выбранных цветов </em> </H2> <br></div> </head> <body> <table> <script language="JavaScript"> document.write("<tr><td> </td>"); for (i = 1; i < 8; i++) document.write("<td><td>"+" </td>"); document.write("</tr>"); var r, g, b, color; for (i = 1; i < 8; i++) {document.write("<tr><td>" + " </td>"); for (j = 1; j < 8; j++){ r = Math.round(255*Math.random()).toString(16); g = Math.round(255*Math.random()).toString(16); b = Math.round(255*Math.random()).toString(16); color = r + g + b; document.write('<td bgcolor=#'+color+'>'+'#'+color+'</td>');} document.write("</tr>");} </script> </table> </body> </html>