|
|
|
|
XSPF is an mp3player that makes it possible to add a music background to one's site (.mp3).
It's very simple to add it to your pages, and it's customizable too.
Here's an example of XSPF at work:
(click on the play button to start audio)
|
|
How to insert the player on your site
|
|
You have to upload the file you want as background for your site first.
To upload the mp3 file, follow these steps:
- go to document management
- push the button of the bar under the "Documents" section
- select the audio file (.mp3) from your computer by clicking on the "browse..." button and click "enter"
- double-click the loaded document
- copy the shown address (/res/site...)
- go back to site design
- go to the page you want to insert the player
- edit the text block tou want to insert the player into
- click on
- copy the following code and paste it in the "source code" window:
-
<div align="center">
<div class="eaKeep"><script type="text/javascript" src="/iwetc/res/js/flash.js"></script>
<div id="200_flash"><script>
<!--
var fl_200=new IwFlash("/r/xspf_player_slim.swf?song_url=/res/site35/res164800_yourfile.mp3&player_title=EditArea&song_title=Artist Name+-+Title",'530','15',"");
fl_200.name="xspf";
fl_200.wmode="transparent";
fl_200.version="6,0,29,0";
fl_200.instantiate();
// -->
</script></div>
</div>
</div>
You'll have to replace "yourfile.mp3" with the address of the file you uploaded on your site (/res/site...), replace "Artist Name - Title" with the song title and the performer, and change EditArea into your site's name.
|
|
|
|
Here are some useful parameters to customize your player:
song_title | MP3 file title to be shown in the player |
autoload | true - mp3 track is immediately loaded. Speeds up music start when the user clicks on play, but will increase your site's trafffic. |
repeat_playlist | true - sets the track to loop when play ends. |
b_bgcolor
b_fgcolor | Hexadecimal colour (eg FFCC00) to change the player colour. |
autoplay | true - sets the track to start automatically. If omitted, the user has to click on the play button for the music to start. |
Online documentation:
http://musicplayer.sourceforge.net/
|
|
|
|