你先試個簡單點的,不換字體顏色, mp3player的flash和config xml都先用我帖裏的,這樣你自己隻寫一個music playlist文件就可以了.
music playlist文件格式如下:(把裏麵的音樂連接和音樂名字換成你的,然後save as 成一個名字叫 playlist.xml的文件)
<?xml version='1.0' encoding='UTF-8' ?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<title>Sample PHP Generated Playlist</title>
<info>http://www.jeroenwijering.com/</info>
<trackList>
<track><location>http://space.wenxuecity.com/media/1234554348.mp3</location><annotation> 01. Walking Through Clouds </annotation><info>blank</info></track>
<track><location>http://space.wenxuecity.com/media/1234554203.mp3</location><annotation> 02. Touched by Love </annotation><info>blank</info></track>
<track><location>http://space.wenxuecity.com/media/1234554518.mp3</location><annotation> 03. Deep Green Summer </annotation><info>blank</info></track>
</trackList>
</playlist>
把這個playlist.xml文件上傳到WXC,得到一個xml的連接.把下麵的code裏麵 <b>file=</b> 後麵的連接換成你得到的連接,然後把這幾行code放到帖裏就可以了(width和height是控製播放器寬和高的兩個參數,你可以自己調整)
<embed name="mp3player" pluginspage="http://www.macromedia.com/go/getflashplayer"
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://space.wenxuecity.com/media/1234582544.xml" quality="high" menu="false" />
按照上麵方法做出來的播放器是透明的.
把上麵的播放器做成功了,如果再想調整播放器的顏色,就是要改一下上麵config=後的文件:
http://space.wenxuecity.com/media/1234824478.xml
(調整frontcolor和lightcolor兩個參數,0x後麵的值可以改變顏色)
把你自己調整好的config文件上傳,然後再替換到上麵的code裏就可以了:)))