如何制作自己的.xml

来源: 2009-08-09 04:08:41 [博客] [旧帖] [给我悄悄话] 本文已被阅读:

嘻嘻,其实我也是刚从音乐快递那儿学会点儿皮毛,现学现卖啦。 如果你想了解更准确,全面的信息,推荐你去快递的论坛帮助和各博客高手家里串串,尤其是lili,园园,小声音,雅雅,没事… 收获1定8小,她/他们都非常耐心热心的帮助解答问题。

做这个播放器一共需要三个文件,一个是mp3player的flash,另外两个是xml文件(一个是设置字体或者播放器的config xml文件,另一个是你的music playlist文件)
我用的是简单的,不换字体颜色, mp3player和config xml都不用变,这样每次做贴时自己只写一个music playlist文件就可以了.

代码如下:
src="http://space.wenxuecity.com/media/1234581326.swf" width="250" height=200"
type="application/x-shockwave-flash" border="0" wmode="transparent"
flashvars="&config=http://space.wenxuecity.com/media/1234824478.xml&file=http://......xml" quality="high" menu="false" />

每次使用只需替换http://......xml成你自己的music playlist就可以乐(注:为让大家看到原代码,在发此贴时在

那么如何制作自己的.xml呢?

首先,需要自己写个music playlist文件。我是把多首歌分次上传到http://web.wenxuecity.com/upload.php 得到链接地址,然后把这些地址和歌名写入下面这个模板:



Sample PHP Generated Playlist
http://www.jeroenwijering.com/

http://space.wenxuecity.com/media/1249765112.mp3 01. The First Time Ever I saw Your Face blank
http://space.wenxuecity.com/media/1249765565.mp3 02. When You Tell Me That You Love Me blank
http://space.wenxuecity.com/media/1249766026.mp3 03. The Power of Love blank





(注:同样为让内容显示在帖子中,
然后把这个文件保存在notepad中,save成"playlist.xml"文件("save as type" 选“all files", "encoding" 选"UTF-8"). 接着上传到http://web.wenxuecity.com/upload.php 就得到你自己的.xml啦~~~:D


自己动手做做8,粉好玩滴^v^