寻找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> ');
}
根据选择框的值