毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> WEB开发 >> 正文

js如何调用temp的值

更新时间:2012-8-14:  来源:毕业论文

<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>
我的是这个样子的

设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优尔论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。