JS实现播放器的方法

 function playwma()

 var Musicurl="F://Music//123.mp3";
 document.writeln("<object id=/"Exobud/" type=/"application/x-oleobject/" height=/"64/" width=/"300/" ");
 document.writeln("classid=/"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6/" name=/"MediaPlayer/">");
 document.writeln("  <param name=/"url/" value=/""+Musicurl+"/" />");
 document.writeln("  <param name=/"ShowControls/" value=/"1/" />");
 document.writeln("  <param name=/"ShowPositionControls/" value=/"0/" />");
 document.writeln("  <param name=/"ShowAudioControls/" value=/"1/" />");
 document.writeln("  <param name=/"ShowTracker/" value=/"1/" />");
 document.writeln("  <param name=/"ShowDisplay/" value=/"0/" />");
 document.writeln("  <param name=/"ShowStatusBar/" value=/"1/" />");
 document.writeln("  <param name=/"AutoSize/" value=/"0/" />");
 document.writeln("  <param name=/"ShowGotoBar/" value=/"0/" />");
 document.writeln("  <param name=/"ShowCaptioning/" value=/"0/" />");
 document.writeln("  <param name=/"AutoStart/" value=/"1/" />");
 document.writeln("  <param name=/"PlayCount/" value=/"100000/" />");
 document.writeln("  <param name=/"AnimationAtStart/" value=/"0/" />");
 document.writeln("  <param name=/"TransparentAtStart/" value=/"0/" />");
 document.writeln("  <param name=/"AllowScan/" value=/"0/" />");
 document.writeln("  <param name=/"EnableContextMenu/" value=/"0/" />");
 document.writeln("  <param name=/"ClickToPlay/" value=/"0/" />");
 document.writeln("  <param name=/"InvokeURLs/" value=/"1/" />");
 document.writeln("  <param name=/"DefaultFrame/" value=/"datawindow/" />");
 document.writeln("  <param name=/"volume/" value=/"100/" />");
 document.writeln("  <embed name=/"MediaPlayer_embed/" ");
 document.writeln("pluginspage=/" http://www.microsoft.com/windows/windowsmedia/download//" ");
 document.writeln("type=/"application/x-mplayer2/" ");
 document.writeln("src=/""+Musicurl+"/" ");
 document.writeln("width=/"300/" height=/"64/" showcontrols=/"0/" showdisplay=/"0/" showstatusbar=/"0/" ");
 document.writeln("autostart=/"0/" autorewind=/"0/" showpositioncontrols=/"0/" showtracker=/"0/"> </embed>");
 document.writeln("</object>");
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值