当前位置: 代码迷 >> ASP.NET >> 寻找Windows Media Player控件使用高手,如何才能让控件播放电影?(万分紧急解决给分!)
  详细解决方案

寻找Windows Media Player控件使用高手,如何才能让控件播放电影?(万分紧急解决给分!)

热度:6354   发布时间:2013-02-26 00:00:00.0
寻找Windows Media Player控件使用高手,怎么才能让控件播放电影???(万分紧急,解决给分!!)
我在ASP.NET页面上使用了一个Windows   Media   Player控件,怎么才能通过设置它的路径,来播放不同的电影呢???

------解决方案--------------------------------------------------------
s=document.getElementById( "DropDownList1 ").options[document.getElementById( "DropDownList1 ").selectedIndex].value;
if(s!=0){
document.write( ' <object id=MP1 classid=clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95 width=320 height=240> ');
document.write( ' <param name= "filename " value= " ');document.write(s);document.write( ' " ');
document.write( ' <param name= "UIMode " value= "none "> ');
document.write( ' <param name= "AutoStart " value= "1 "> ');
document.write( ' <param name= "Enabled " value= "true "> ');
document.write( ' <param name= "ShowControls " value= "-1 "> ');
document.write( ' <param name= "ShowGotoBar " value= "0 "> ');
document.write( ' <param name= "ShowStatusBar " value= "-1 "> ');
document.write( ' <param name= "EnableFullScreenControls " value= "1 "> ');
document.write( ' <param name= "EnablePositionControls " value= "1 "> ');
document.write( ' <param name= "Volume " value= "100 "> ');
document.write( ' <param name= "DisplaySize " value= "0 "> ');
document.write( ' <param name= "SendErrorEvents " value= "0 "> ');
document.write( ' <param name= "enableContextMenu " value= "0 "> ');
document.write( ' <param name= "EnableStretchToFit " value= "1 "> ');
document.write( ' <param name= "EnableTracker " value= "1 "> ');
document.write( ' </object> ');
}

根据选择框的值
  相关解决方案