Click here to Skip to main content
16,006,013 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<script>

   var p = 800;
   var columns = 10, rows = 10, content = "", count = 1;
   var a = new Array('00','33','99','CC','FF');
   content = "<table border='8' cellspacing='1' cellpadding='5' align='center'>";

for (r = 0; r <4; r++)
 {
    for (m = 0; m < 2; m++)
    {
      content += "<tr>";

      for (c = 0; c < 7; c++)
       {

        for(k=0;k<1;k++)
         {
           l=a[r]+a[c]+a[k]+a[m];
           content+="<td onmousehover='abc("+l+");'  bgcolor=#"+l+"></td>";

           if (count==p)
           break;
           count++;
          }
        }
   content += "</tr>";
    }
 }
content += "</table>";

document.body.innerHTML = content;
function abc(val)
{

   var a = '';
 for(var i = 1; i <= 3; i++)
 {
    a += '<input type="text"  name="TextBox'+l+'" value="TextBox'+l+'" >';

    }
    ni.innerHTML = a;

}

}
  </script>
Posted
Comments
[no name] 6-Jun-14 7:14am    
There is a very good reason why the title of postings is in a completely separate area from the part where you are supposed to be typing your question into.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900