简单的播放代码

好久不搞这块,差不多都忘记了

var file = location.href.substr(location.href.lastIndexOf(“?”)+1);

 var html='<OBJECT style=”display:none” id=”Player” name=”Player” width=”200″ height=”50″  CLASSID=”CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95″  CODEBASE=”http:\/\/activex.microsoft.com\/activex\/controls\/mplayer\/en\/nsmp2inf.cab#Version=6,4,5,715″ TYPE=”application\/x-oleobject”>';

  html +='<PARAM NAME=”FileName” id=”FileName” VALUE=”‘+file+'”>';

  html +='<PARAM NAME=”ShowControls” VALUE=”true”>';

  html +='<PARAM NAME=”AutoRewind” VALUE=”true”>';

  html +='<PARAM NAME=”AutoStart” VALUE=”true”>';

  html +='<embed src=”‘+file+'” autostart=”true” width=”200″ height=”50″ loop=”true” \/>';

  html +='<\/object>';

 if(file.length>4){

  document.write(html);

  

 }