It's pretty easy to do that.
Firstly make sure your media player has an ID attribute (I use mplayer in my example). Then on each link specify this attribute: onClick="document.all.mplayer.filename=document.all.this.href;"
Here's one I made earlier!
HTML Code:
<a href="bbgirl.mp3" onClick="document.all.mplayer.filename=document.all.this.href;">Aqua - Barbie Girl</a><BR>
<a href="notme.mp3" onClick="document.all.mplayer.filename=document.all.this.href;">Shaggy - Wasn't Me!</a><BR>
<a href="http://url or path to your media" onClick="document.all.mplayer.filename=document.all.this.href;">Artist - Song Title</a><BR>
<OBJECT id="mplayer" height="230" width="230" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<PARAM NAME="AutoStart" VALUE="0">
<PARAM NAME="Filename" VALUE="">
<PARAM NAME="Enabled" VALUE="1">
<PARAM NAME="PlayCount" VALUE="1">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="1">
<PARAM NAME="ShowStatusBar" VALUE="1">
</OBJECT>
I only registered on this forum to answer this question!
Bookmarks