"); ."/> "); ."/> "); "/>
Hello I have a task to make two colored tables, the first one must look like this:
and I've completed it via script:
<script>
n =10;
document.write("<table>");
for (i =1; i <n; i++)
{
document.write("<tr>");
for (j =1; j <=n; j++)
{
if (j <=i)
s ="class ='r1'";
else
s ="class ='r2'";
document.write("<td " + s + "> </td>");
}
document.write("</tr>");
}
document.write("</table>");
</script>
The second one must look like this:
and I don't know how to do it. Any suggestions?
برچسب:
نویسنده: استخدام کار