更新时间:2022-12-23 15:43:19
使用 JW Player http://www.longtailvideo.com/players/jw-flv-player/ 播放 MP3,但请不要在没有用户要求的情况下播放音乐.这将使用户对您网站的 GTFO 感兴趣.
Use JW Player http://www.longtailvideo.com/players/jw-flv-player/ to play MP3, but please don't play music without the user request. This will make the user to GTFO of your website.
示例:http://www.longtailvideo.com/support/jw-player-setup-wizard?example=202
<script type='text/javascript' src='swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('player.swf','mpl','470','24','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('duration','33');
so.addVariable('file','http://www.longtailvideo.com/jw/upload/bunny.mp3');
so.write('mediaspace');
</script>