<script type="text/javascript">
var temp;
temp = document.getElementById("src").value;
var so = new SWFObject("CuPlayerMiniV10_Black_S.swf","CuPlayer","720","430","9","#000000");
so.addVariable("CuPlayerFile",temp);//绝对地址
so.write("CuPlayer");
</script>
temp的值应为“video/1.mp4”
怎么将temp的值,付到so.addVariable("CuPlayerFile",temp);//
so.addVariable("CuPlayerFile",'" + temp + "');
<script type="text/javascript">
var so = new SWFObject("CuPlayerMiniV10_Black_S.swf","CuPlayer","476","300","9","#000000");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
so.addParam("wmode","opaque");
so.addParam("quality","high");
so.addParam("salign","lt");
so.addVariable("CuPlayerFile","<%=mtv.Url %>");//绝对地址
so.addVariable("CuPlayerImage","Images/flashChangfa2.jpg");
so.addVariable("CuPlayerShowImage","true");
so.addVariable("CuPlayerWidth","476");
so.addVariable("CuPlayerHeight","300");
so.addVariable("CuPlayerAutoPlay","true");
so.addVariable("CuPlayerAutoRepeat","true");
so.addVariable("CuPlayerShowControl","true");
so.addVariable("CuPlayerAutoHideControl","false");
so.write("CuPlayer");
</script>
我的是这个样子的