Menu Online Learning Center from EZ-NetTools

« Tips and Tricks

Add an MP3 Player to Your Website

As of July 1, 2013 Yahoo Player has been discontinued.
The following code no longer functions.


One easy way to add music to a website is with the Yahoo! Webplayer. It will make any audio (or video) link automatically play on page. Click the example below to see it in action!

Example:

Listen to Big Band Music

How to add it to a webpage


1. Upload Your MP3

If you don't know how to upload a file click here.

2. Copy this code:

<script type="text/javascript" src="http://webplayer.yahooapis.com/player.js"></script>

3. Paste the code into the Head Code of your webpage
Click File >Page Options. Scroll down and paste in the box labeled Head Code.

4. Link to an audio file
Simply make a link to your music file. This is done the same way as linking to a webpage. The script will automatically make it play on the page, when a user clicks on the link.


Advanced Options

If you need to use advanced options (such as autoplay or playlists) please consult the Documentation on the Webplayer site.