Ich habe es so gelöst
<script language="JavaScript" type="text/javascript">
<!--
function Play()
{
document.getElementById('music').innerHTML='<object width="300" height="45" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/contro…sion=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="module/streams/listen.asx">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="300" height="45" '
+'src="streams/listen.asx" autostart="true" loop="true">'
+'</object>';
// roter button play
// normaler button stop
document.play.src = "images/play_red.gif";
document.stop.src = "images/stop.gif";
}
function Stop()
{
document.getElementById('music').innerHTML='<object width="300" height="45" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/contro…sion=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="300" height="45" '
+'src="" autostart="true" loop="true">'
+'</object>';
// roten button stop
// normaler button play
document.play.src = "images/play.gif";
document.stop.src = "images/stop_red.gif";
}
}
-->
</script>
<body>
<img name="stop" src="images/stop_red.gif" alt="Radio C'est La Vie-Stream stoppen" border=0 onclick="Stop();">
<img name="play" src="images/play.gif" alt="Radio C'est La Vie-Stream abspielen" border=0 onclick="Play();">
<div id="music">
<object width="300" height="45"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/contro…sion=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="45"
src="" autostart="true" loop="true">
</object>
</div>
</body>