jQuery歌词同步的音乐播放器插件演示 APlayer演示
本例用的歌曲是另外一首
XML/HTML Code
- <script>
- var ap1 = new APlayer({
- element: document.getElementById('player1'),
- narrow: false,
- autoplay: false,
- showlrc: false,
- music: {
- title: 'Sugar',
- author: 'Maroon 5',
- url: 'music/Sugar.mp3',
- pic: 'music/Maroon5.jpg'
- }
- });
- ap1.init();
- var ap2 = new APlayer({
- element: document.getElementById('player2'),
- narrow: true,
- autoplay: false,
- showlrc: false,
- music: {
- title: 'Sugar',
- author: 'Maroon 5',
- url: 'music/Sugar.mp3',
- pic: 'music/Maroon5.jpg'
- }
- });
- ap2.init();
- var ap3 = new APlayer({
- element: document.getElementById('player3'),
- narrow: false,
- autoplay: false,
- showlrc: true,
- music: {
- title: '平凡之路',
- author: '朴树',
- url: 'music/Sugar.mp3',
- pic: 'music/pf.jpg'
- }
- });
- ap3.init();
- </script>
原文地址:http://www.freejs.net/article_yingyueshipin_603.html