I know this is way old, but I was searching for a solution, found one, implemented it, and thought I'd post it here if someone else dropped by looking.
Code:
<html>
<head>
<title>Embed Media Player</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type"text/javascript">
function PlayMedia(clipName){
document.getElementById("player").innerHTML='<object id="mediaPlayer" width="320" height="240" '
+'classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="fileName" value="'+clipName+'">'
+'<param name="autoStart" value="true">'
+'<param name="showControls" value="true">'
+'<param name="ShowStatusBar" value="1">'
+'<param name="loop" value="false">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" width="320" height="240" '
+'src="'+clipName+'" autostart="true" loop="false">'
+'</embed>'
+'</object>'
}
</script>
</head>
<body>
<ul>
<li><a href="http://link.to.your.clip.here.mpg" onclick="PlayMedia(this.href);return false">CLIP 1</a></li>
<li>><a href="http://link.to.different.clip.here.mpg" onclick="PlayMedia(this.href);return false">CLIP 2</a></li>
</ul>
<div id="player">
<object id="mediaPlayer"
codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
type="application/x-oleobject"
width=320
height="240"
standby="Loading Microsoft Windows Media Player components..."
classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>
<PARAM NAME="fileName" VALUE="">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="ShowStatusBar" VALUE="1">
<PARAM NAME="loop" VALUE="false">
<embed
type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true"
width="320"
height="240"
src="" autostart="true"
loop="false">
</object>
</div>
</body>
</html>