1。用下面的网页上传音乐。WXC只能上传小于8MB的音乐文件。支持格式详见上传网页:http://web.wenxuecity.com/upload.php
上传后你会在你的qqh得到一个link。例子:http://space.wenxuecity.com/media/1317684701.mp3
2。把下面这段code存成一个xml文件。上传完你要的所有音乐后,把所有的link拷贝到这个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/1317684701.mp3</location><annotation>Antonín Dvořák - Slavonic Dances, Op 46, B 78 No 5 in A major for Piano Four Hands</annotation><info>blank</info></track>
</trackList>
</playlist>
注意只修改这这部分:<track><location>“你在qqh得到一个音乐的link”</location><annotation>“音乐的名字”</annotation><info>blank</info></track>。
一定不要修改这个文件的其它部分!
<track><location>你在qqh得到一个音乐的link</location><annotation>音乐的名字</annotation><info>blank</info></track>可以重复多次。
3。编辑好这个xml文件后,用上面同一网页上传到文学城。同样你会在你的qqh得到一个link。例子:http://space.wenxuecity.com/media/1322453506.xml
4。把下面这段code存成一个xml文件。这是music player的控制参数文件。修改你要的参数,然后用上面同一网页上传到文学城。同样你会在你的qqh得到一个link。例子:http://space.wenxuecity.com/media/1316968202.xml
<mp3config>
<!-- choose here if you want the mp3player to automatically start and shuffle songs (true or false) -->
<autostart>true</autostart>
<shuffle>false</shuffle>
<!-- choose the mp3player repeat mode (none, one or all) -->
<repeat>all</repeat>
<!-- choose the mp3player volume (0 to 100) -->
<volume>100</volume>
<!-- choose here if you want to show the display and playlist (true or false) -->
<showdisplay>true</showdisplay>
<showplaylist>true</showplaylist>
<!-- choose here in what frame you want links to be opened (_blank, _self, _top or a framename) -->
<linktarget>_top</linktarget>
<!-- choose the mp3player colors (hexadecimal, from 0x000000 to 0xffffff) -->
<backcolor>0xFFFFFF</backcolor>
<frontcolor>0xFFFFFF</frontcolor>
<lightcolor>0xFFFFFF</lightcolor>
<!-- you can set a JPG as the background here to skin the mp3player (url to the jpg file) -->
<jpgfile>http://i12.tinypic.com/2j4pliq.jpg</jpgfile>
</mp3config>
5。把音乐xml文件的link(上面的http://space.wenxuecity.com/media/1322453506.xml)和music player的控制参数xml文件的link(上面的http://space.wenxuecity.com/media/1316968202.xml)拷贝到下面的code里。
<div style="POSITION: relative; TOP: 1px; LEFT: 1px"><div style="Z-INDEX: 5"></div><div style="Z-INDEX: 6; POSITION: absolute; TOP: 245px; LEFT: 8px"><embed style="WIDTH: 760px; HEIGHT: 100px" height="180" type="application/octet-stream" pluginspage="http://www.macromedia.com/go/getflashplayer" width="250" src="http://space.wenxuecity.com/media/1234508437.swf" flashvars="&config=http://space.wenxuecity.com/media/1316968202.xml&file=http://space.wenxuecity.com/media/1322453506.xml" menu="false" quality="high" wmode="transparent" border="0" /> </div></div>
6。<div style="Z-INDEX: 6; POSITION: absolute; TOP: 245px; LEFT: 8px">中“TOP: 245px; LEFT: 8px”的值是music player的指标,修改到你满意的位置;
7。<embed style="WIDTH: 760px; HEIGHT: 100px" 中的WIDTH: 760px; HEIGHT: 100px是player的宽度和高度。修改到你满意的位置。
下面是一个完整的例子,取自我的“【看得见音乐的照片·6】摄坛网友作品欣赏”帖:
<table width="776" >
<tfoot>
<tr><td align="right">
梦中画摄影
</td></tr>
</tfoot>
<tbody>
<tr><td align="center">
<table cellspacing="0" cellpadding="0" width="776" background="https://blufiles.storage.live.com/y1pmGFTrYgbxoB-wYInmrHEUqmsx0tLoMCuh0N2eCoLGO8lZC1qll7QjLHbI5YSalfIRs05qRhIQQU/s49.jpg" height="482">
<tbody>
<tr><td>
<div style="POSITION: relative; TOP: 1px; LEFT: 1px"><div style="Z-INDEX: 5"></div><div style="Z-INDEX: 6; POSITION: absolute; TOP: 245px; LEFT: 8px"><embed style="WIDTH: 760px; HEIGHT: 100px" height="180" type="application/octet-stream" pluginspage="http://www.macromedia.com/go/getflashplayer" width="250" src="http://space.wenxuecity.com/media/1234508437.swf" flashvars="&config=http://space.wenxuecity.com/media/1316968202.xml&file=http://space.wenxuecity.com/media/1322453506.xml" menu="false" quality="high" wmode="transparent" border="0" /> </div></div>
</td></tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>