昨天无意中发现了大量的网页用mp3等音频播放器,但是由于涂鸦版的object和&字符的限制,有些功能不能用,而大多是我不 知道如何加载播放列表,兄弟能力有限,就不费神了,哪位有这个兴趣,或是有这个能力,不妨尝试一下
http://www.cuiz.net/player_down.htm
http://www.cuiz.net/down.asp?type=1
http://www.flashk.org
第一个网址可以查看播放器样式,但无法下载,第二个是可以下载的网址,第三个是今天要介绍的播放器的网站地址
今天给大家介绍的这款播放器,主体文件为flash,播放列表编辑用xml编辑,而它最大的卖点就是可以加载歌词,缺点是对某 些压缩码率的音乐文件支持不好,试了下,好像只支持mp3文件,算是给大家多一种选择吧
引用代码如下:
<embed src=\"http://img.xiaonei.com/photos/20060822/0900/orig39350.swf\" width=\"350\" height=\"500\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" flashvars=\"list=你的播放列表xml文件地址\" name=\"S2\"></embed>
其中,width和height的值调整播放器面板大小
播放列表xml文件格式
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<?xml-stylesheet type=\"text/xsl\" href=http://www.xfuu.cn/code/5/2007/\"playlist2005.xsl\"?>
<playlist version=\"1.5\" firstRun=\"10\">
<music name=\"张韶涵--隐形的翅膀\" addres=\"http://img.xiaonei.com/photos/20060629/2130/orig77498.mp3\" lrc=\"http://img.xiaonei.com/photos/20060822/1200/orig44178.txt\"/>
<music name=\"我要的世界\" addres=\"http://img.xiaonei.com/photos/20060821/1640/orig45410.mp3\" />
<music name=\"恋着多喜欢\" addres=\"http://img.xiaonei.com/photos/20060808/2320/orig66326.mp3\" />
</playlist>
这里为了演示效果,放了第一首歌的歌词,如果是自己压缩或剪裁的歌曲,歌词可能要重新修改一下,如果是直接引用网上的完整版的歌曲,那么歌词文件就可以用千千静听自动下载的歌词,把扩展名改成txt就可以了
演示代码:
<embed src=\"http://img.xiaonei.com/photos/20060822/0900/orig39350.swf\" width=\"350\" height=\"500\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" flashvars=\"list=http://img.xiaonei.com/photos/20060822/1350/orig47426.xml\" name=\"S2\"></embed>
校内网播放器代码之可以加歌词的播放器
来源:www.xiaon.org.cn
作者:校内网
时间:2008-01-24
Tag:
点击:
0
最新评论共有 0 位网友发表了评论
查看所有评论
发表评论

