在html中取得js值,我想在<param name="movie" value="" /> 去得js中的res变量的值

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><style type="text/css">
<!--
body {
background-color: #000000;
}
--></style>

<script>
var str1="uploadfile\\qwjs\\";
var pguid=document.getElementsByName("cnd_pguid")[0].value;
var attachname=document.getElementsByName("cnd_attachname")[0].value;
var res=str1+pguid+'\\'+attachname+'.swf';
alert(res);

</script>

<table border="0" width="100%">
<tbody>
<tr>
<td>
<table border="0" width="600" align="center">
<tbody>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="600">
<param name="movie" value="" />
<param name="quality" value="high" /><embed type="application/x-shockwave-flash" width="800" height="600" src="D:\11.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

var res=str1+pguid+'\\'+attachname+'.swf';
document.getElementsByName("movie")[0].value = res;
温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-11-23
alert(res);

换成document.getElementById('movie').value = res;
第2个回答  2011-11-23
document.getElementById('movie').value = res;

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网