Hi,
>
> as (without duplication row and column):
>
> <table>
>     <tr>
>         <TD BGCOLOR="#F4A460">1/1 </td>
>     </tr>
>     <tr>
>         <TD BGCOLOR="#32CC99">2/1 </td>
>         <TD BGCOLOR="#7CFC00">2/2 </td>
>     </tr>
>
>     <tr>
>         <TD BGCOLOR="#F4A460">3/1 </td>
>
>         <TD BGCOLOR="#FFFF00">3/2 </td>
>
>         <TD BGCOLOR="#F4A460">3/3 </td>
>     </tr>
> </table>
>
> It's real idea?
>

You can do this already, if you rows and columns are dividable by 2 you can
use the following code:

<table>
    <tr>
        <TD BGCOLOR="#F4A460">[+ $a[$row*2][$col*2] +] </td>
        <TD BGCOLOR="#FFFF00">[+ $a[$row*2][$col*2+1] +] </td>
    </tr>
    <tr>
        <TD BGCOLOR="#A4A4B4">[+ $a[$row*2+1][$col*2] +] </td>
        <TD BGCOLOR="#7CFC00">[+ $a[$row*2+1][$col*2+1] +] </td>
    </tr>
</table>

a more generic solution would be to write:

<table>
    <tr>
        <TD BGCOLOR="[+ ($row &
1)?(($col&1)?'#7CFC00':'#A4A4B4'):(($col&1)?'#FFFF00':'#F4A460') +]">[+
$a[$row][$col] +] </td>
    </tr>
</table>

> Second question: many Web editor programs insert in HTML-doc
> only one tag <tr> or <td> - without </tr> or </td>, as this write in
> http://www.w3.org/TR/REC-html40/struct/tables.html#edef-TR
> But Embperl return error!!! This is real necessary? May be interpret new
> <tr> or <td>, as </tr>+<tr> or </td>+<td>?
>

I add this to the TODO list

Gerald

---------------------------------------------------------------
Gerald Richter      ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl

E-Mail:     [EMAIL PROTECTED]         Tel:        +49-6133/925151
WWW:        http://www.ecos.de      Fax:        +49-6133/925152
---------------------------------------------------------------

Reply via email to