^_^

2008年12月25日星期四

一个效果不错的MP3播放器及代码

<object type="application/x-shockwave-flash" data="http://or2rua.blu.livefilestore.com/y1prvh8-ZPwBNkcAkmFrnbOH9ur--tSEI6CUamNBA75hPPhF_Y5tvwFOZ4qdMmrgd9S7zVxPVvDjvqpNWnoRDq_bA/player.swf" width="290" height="24" id="audioplayer1"><param name="movie" value="http://or2rua.blu.livefilestore.com/y1prvh8-ZPwBNkcAkmFrnbOH9ur--tSEI6CUamNBA75hPPhF_Y5tvwFOZ4qdMmrgd9S7zVxPVvDjvqpNWnoRDq_bA/player.swf" />
<param name="FlashVars" value="playerID=1&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&soundFile=http%3A%2F%2Fb0nsrq.blu.livefilestore.com%2Fy1pjxRzqkuNof_m2JBY51-lQRhGfJkRuxShTayoXT8MLLg-Ri6w1CIYuQhHFEKvVNHAUaiyUUS5oKLLvywbGPzgJA%2Fprison%20break.mp3" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="bgcolor" value="#FFFFFF" />
</object>
其中斜体为播放器位置,粗体为mp3位置。mp3的url做一些格式转换:
“:” -> %3A
“/” -> %2F
如:
http://b0nsrq.blu.livefilestore.com/y1pjxRzqkuNof_m2JBY51-lQRhGfJkRuxShTayoXT8MLLg-Ri6w1CIYuQhHFEKvVNHAUaiyUUS5oKLLvywbGPzgJA/prison%20break.mp3
->
http%3A%2F%2Fb0nsrq.blu.livefilestore.com%2Fy1pjxRzqkuNof_m2JBY51-lQRhGfJkRuxShTayoXT8MLLg-Ri6w1CIYuQhHFEKvVNHAUaiyUUS5oKLLvywbGPzgJA%2Fprison%20break.mp3
最后的效果如下:
本站文章除注明外,均为本站原创
转载请注明文章转载自: 大笨熊乐园 [ https://blog.foolbear.com/?m=0 ]
文章标题: 一个效果不错的MP3播放器及代码
文章地址: https://blog.foolbear.com/2008/12/mp3.html?m=0

1 条评论 :

大笨熊 说...

似乎唯一的缺点是不能调整音量。

发表评论

Related Posts with Thumbnails