<html>
<head>
<title>MP3-Player mit javascript</title>
<script type="text/javascript">
function playmusic(){
var myform = document.getElementById("musik");
var myindex = myform.selectedIndex;
var part1 = "<OBJECT ID='MediaPlayer'classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'CODEBASE='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715'width='300' height='70' standby='Loading Microsoft Windows Media Player components...'type='application/x-oleobject'><PARAM NAME='filename' VALUE='";
var part2 = "'><PARAM NAME='TransparentAtStart' Value='true'><PARAM NAME='AutoStart' Value='true'><PARAM NAME='AnimationatStart' Value='false'><PARAM NAME='ShowStatusBar' Value='true'><PARAM NAME='ShowControls' Value='true'><PARAM NAME='autoSize' Value='false'><PARAM NAME='displaySize' Value='false'><PARAM NAME='ShowAudioControls' Value='true'><PARAM NAME='ShowPositionControls' Value='false'><Embed type='application/x-mplayer2'pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'src='";
var part3 = "' Name='filename'width='300' height='70' transparentAtStart='1' autostart='1'animationAtStart='0' ShowControls='true' ShowAudioControls='1'ShowPositionControls='1' autoSize='1' ShowStatusBar='1' displaySize='false'></embed></OBJECT>";
var komplett = part1 + myform.options[myindex].value + part2 + myform.options[myindex].value + part3;
if(myindex!="") {document.getElementById("playerdiv").innerHTML=komplett}
}
</script>
</head>
<!-- --><body><!-- --><script src="http://static.homerecads.de/home.arcor.de_v1.js"></script>
<select id="musik">
<option selected value="">bitte song auswählen</option>
<option value="http://Deine Musikadresse1 ">Titellied </option>
<option value="http:// Deine Musikadresse2 ">Titellied </option>
<option value="http://Deine Musikadresse3 ">Titellied </option>
<option value="http://Deine Musikadresse4 ">Titellied </option>
<option value="http://Deine Musikadresse5 ">Titellied </option>
</select> <button onclick="playmusic();">song abspielen</button>
<br>
<div id="playerdiv"></div>
</body>
</html>