javaScript beat PHP :(

Hi all, I come back and continuous bug you!
I’m try to write an effect that when we click cursor on a table, it will link to $linkt and here is my code:

<? $linkt="hix"; ?>
<td bgcolor="FFFFFF" style="Cursor:Hand" onClick="window.location.href=<? print " '$linkt' "; ?> " onMouseOver="this.bgColor='#f2f2f2'" onMouseOut="this.bgColor='#FFFFFF' ">
-------- test------------

but PHP not work together with javaScript. Can you share me your experience. merci in advance !