JS实现的客户端使用的播放器代码

JS function:

function play(audiourl){
document.getElementById('playerRegion').innerHTML=
'+'type="codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902""'
+'type="standby="Loading Microsoft Windows Media Player components...""'
+'type="application/x-oleobject" width="230" height="45">'
+''
+''
+''
+'+'showcontrols="true" src="'+audiourl+'">';
document.getElementById('playImage').innerHTML="";
}

html:

   

你可能感兴趣的:(javascript)