Sunday, 18 August 2013

Random rearrangement of cells of a table.

Random rearrangement of cells of a table.

I have HTML table and the table contains 100 Rows and 2 columns (200
cells). I would like the cells to be rearranged randomly with respect to
it's original row AND/OR it's original column.
This is how I would represent 4 pieces of data.
<table>
<tr>
<td> Data1 </td>
<td> Data2 </td>
</tr>
<tr>
<td> Data 3 </td>
<td> Data 4 </td>
</tr>
</table>
The Data's represent Images for a gallery which I'm working on. Kindly
suggest another opinion if I shouldn't be using tables for such an
arrangement. Thanks in advance guys :)

No comments:

Post a Comment