Possible to put Javascript into <EMBED> Tag?

Is it possible to put Javascript variable into a <Object> or <EMBED> Tag?
So I know this doesnt seem to work:


<SCRIPT LANGUAGE="javascript">
var coolClip = "clip.rm";
</SCRIPT>
 <OBJECT id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'
        width="284" height="208">
        <param name='src' value="&{coolClip};">  .... .....

Not having much luck with using ‘write’ to write the whole thing either…


document.write(" <OBJECT id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'
        width='284' height='208'>
        <param name='src' value='")   + coolClip + "......   ");

Could someone point me in the right direction ? Thanks!!