日期:2014-05-16  浏览次数:20314 次

JS赋值的问题。。
<OBJECT   id=StormPlayer   classid=   CLSID:6BE52E1D-E586-474f-A6E2-1A85A9B4D9FB>
<PARAM   NAME= "width "   VALUE= "574 ">
<PARAM   NAME= "height "   VALUE= "490 ">
<PARAM   ID= "URL "   NAME= "URL "   value= " ">
<PARAM   NAME= "backColor "   VALUE=0>
<PARAM   NAME= "autoPlay "   VALUE= "1 ">
<PARAM   NAME= "titleVisible "   VALUE= "1 ">
<PARAM   NAME= "controlBarVisible "   VALUE= "1 ">
<PARAM   NAME= "InfoBarVisible "   VALUE= "1 ">
<PARAM   NAME= "contextMenuEnable "   VALUE= "1 ">
<PARAM   NAME= "titleForeColor "   VALUE=255>
<PARAM   NAME= "titleBackColor "   VALUE=3223857>
<PARAM   NAME= "displayMode "   VALUE= "1 ">
</OBJECT>
对其中ID为URL的赋值,怎么也不行
比如
document.getElementById( "url ").value= "x:\xx\xxx.xxx ";
,不成功...
小弟JS水平有限,请各位高手帮助

------解决方案--------------------
var url=document.getElementById( "url ");
url.setAttribute(value, "x:\xx\xxx.xxx ")