This page contains the necessary file so that *.mp3 files may be embedded into pages of this wiki:
Setup
To embed an *.mp3 file, you need to:
- Upload the file to the page you want to display it on;
- Enter the HTML code on the page source;
- Enter the iFrame code on the page source.
HTML code
Here is the code you must enter on the page (but not within commented section!!)
[[div style="display : none;"]]
[[code type="html"]]
<body>
<script language="JavaScript" src="http://wikipiano.wikidot.com/local--files/audio-player/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://wikipiano.wikidot.com/local--files/audio-player/player.swf" id="audioplayer1" height="24" width="290">
<param name="movie" value="http://wikipiano.wikidot.com/local--files/audio-player/player.swf">
<param name="FlashVars" value="playerID=1&soundFile=http://wikipiano.wikidot.com/local--files/PAGE-NAME/SONG-NAME.mp3">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>
</body>
[[/code]]
[[/div]]
Please note that "PAGE-NAME" and "SONG-NAME" need to be entered. These are the values that would appear in your address-bar (the URL).
For example: the URL is: http://wikipiano.wikidot.com/archive:bareilles-sara-love-song
The page title is Bareilles, Sara - Love Song
The PAGE NAME is archive:bareilles-sara-love-song
The song file should be uploaded in only alpha-numeric characters (no spaces).
iFrame Code
[[iframe http://wikipiano.wikidot.com/PAGE-NAME/code/1 frameborder="0" scrolling="no" width="320px" height="40px"]]
Note that the "PAGE-NAME" needs to be entered.