用到的两个网页播放器,embed那个兼容ie7,ie8,ff,object那个似乎只支持ie8,ie7

 

  1. <embed id="MediaPlayer2" style="border-color:#0099FF; border-bottom-width:1px; border-left-width:1px;"  width="350" height="262" 
  2.             src="多媒体路径"  volume="-5000(此处想实现加载时静音,无奈mute无效)"  hidden="no" autostart="true" loop="true"></embed> 

 

 

 

  1. <object id="NSPlay" width="350" height="262" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" 
  2.             codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" 
  3.             standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> 
  4.             <param name="AutoRewind" value="1" /> 
  5.             <param name="FileName" value="你的文件完整路径" /> 
  6.             <param name="ShowControls" value="1" /> 
  7.             <param name="ShowPositionControls" value="0" /> 
  8.             <param name="ShowAudioControls" value="1" /> 
  9.             <param name="ShowTracker" value="0" /> 
  10.             <param name="ShowDisplay" value="0" /> 
  11.             <param name="ShowStatusBar" value="0" /> 
  12.             <param name="ShowGotoBar" value="0" /> 
  13.             <param name="ShowCaptioning" value="0" /> 
  14.             <param name="AutoStart" value="1" /> 
  15.             <param name="Mute" value="1(是否静音)" /> 
  16.             <param name="Volume" value="-50" /> 
  17.             <param name="AnimationAtStart" value="0" /> 
  18.             <param name="TransparentAtStart" value="0" /> 
  19.             <param name="AllowChangeDisplaySize" value="0" /> 
  20.             <param name="AllowScan" value="0" /> 
  21.             <param name="EnableContextMenu" value="0" /> 
  22.             <param name="ClickToPlay" value="0" /> 
  23.         </object>