Click to See Complete Forum and Search --> : Best way to draw up a table with images?


Fredde
02-05-2003, 01:58 PM
Ok, what I want to do is have a table with say, 5x5 cells. In the cells I want same-looking pictures which you can click on.
All of the cells together should look like one big picture. I want the cell-pictures to be clickable because I want them to change when you have clicked another button and clicked on one of them.

From what I know you could do the table with alot of HTML <TD>,<TR>. But there must be an easier way. I have looked on other javascripts and they seem to use strange funtions to draw up the tables with pictures, for example a boardgame.
I dont expect anyone to give me a full tutorial but I just need somekind of clue of what to do...

Thank you.......

Sergey Smirnov
02-05-2003, 02:56 PM
Why You are afraid of '<tr><td>' so much?
Actually, it is not a hardest part of what are you going to do.

Anyway, to build 5x5 cells without table tags, you can just put them five in row and put a <br> between the rows. To avoid breaking row, the dummy transparent gif with heigh=1 and width=len_of_row is required