You can probably see from the code what I'm trying to do, but it's not working at all===========================Here is my latest Try I have now read that the embed tag doesn't work in XHTML so I changed it to an object tag but it still doesn't work
<html> <head> <script type="text/javascript">function PlayTrailer(Source,PWidth,PHeight) {//document.embeds["Player"].src=Source; //document.embeds["Player"].width=PWidth; //document.embeds["Player"].height=PHeight;document.getElementById("Player").dataSrc=Source; document.getElementById("Player").width=PWidth;document.getElementById("Player").height=PHeight;}</script> </head> <body> <table width="600" border="0"><tr> <td width="198"> <table width="199" border="0"> <tr> <td width="193"> <a href="java script:PlayTrailer('http://jowood.inode.at/stargate/stargate_trailer_e3_hi.wmv','320','278')">Stargate SG-1: The Alliance</a> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> </td> <td width="392" align="center"> <object name="Player" id="Player"></object> </td> </tr> </table> </body> </html>
--------------------Changed to