"); ."/> "); ."/> "); "/>
خرید بک لینک

Hello I have a task to make two colored tables, the first one must look like this:

enter image description here

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:

enter image description here

and I don't know how to do it. Any suggestions?

برچسب: نویسنده: استخدام کار تاريخ: شنبه 7 فروردين 1395 ساعت: 16:03

صفحه بندی