Ciao ho corretto un po il codice spero che il risultato che volevi fosse questo.

Codice PHP:
<html>
    <
head>
        <
title>prova</title>
        <
script language="javascript">
            function 
mettiTesto(id,testo
            {
                
document.getElementById(id).innerHTML=testo;
            }        
        
</script>
    </head>
    <body>
        <table border=1px">
            <tr>
                <td>
                    [url="#"]clicca[/url]
                </td>
                <td>
                    [url="#"]clicca[/url]</td>
                </td>
            </tr>
            <tr>
                <td id="primo" width="220px" height="200px"></td>
                <td id="secondo" width="220px" height="200px"></td>
            </tr>
        </table>
    </body>
</html>