Da immer wieder mal Probleme mit dem Media Player in der OL auftauchen, besteht die Möglichkeit jetzt für ein Radio drei verschiedene Player in die OL zu setzen.
Ich setz die Scripte mal wieder als Zitat rein um das was ihr anpassen müßt farblich zu markieren.
<script type="text/javascript">function setzeOl1Bild(){if(!parent.rightFrame.document.getElementById("ol1Bild")){prd=parent.rightFrame.document; ol1BildLink = prd.createElement("a"); ol1BildLink.href='
http://www.lcl-online.de/streambox_shout/media.php?url=url-zum-radio&port=
????'; ol1BildLink.target='blank'; ol1Bild = prd.createElement("img"); ol1Bild.id="ol1Bild"; ol1Bild.src = "http://
url-zum-bild-vom-mediaplayer"; ol1BildLink.style.position = "absolute"; ol1BildLink.style.bottom = "
1px"; ol1BildLink.style.left = "
40px"; ol1BildLink.appendChild(ol1Bild); prd.getElementsByTagName("body")[0].appendChild(ol1BildLink);}}window.setTimeout("setzeOl1Bild()",2500)</script><script type="text/javascript">function setzeOl2Bild(){if(!parent.rightFrame.document.getElementById("ol2Bild")){prd=parent.rightFrame.document; ol2BildLink = prd.createElement("a"); ol2BildLink.href='
http://www.lcl-online.de/streambox_shout/real.php?url=url-zum-radio&port=
????'; ol2BildLink.target='blank'; ol2Bild = prd.createElement("img"); ol2Bild.id="ol2Bild"; ol2Bild.src = "http://
url-zum-bild-vom-realplayer"; ol2BildLink.style.position = "absolute"; ol2BildLink.style.bottom = "
1px"; ol2BildLink.style.left = "
80px"; ol2BildLink.appendChild(ol2Bild); prd.getElementsByTagName("body")[0].appendChild(ol2BildLink);}}window.setTimeout("setzeOl2Bild()",2500)</script><script type="text/javascript">function setzeOl3Bild(){if(!parent.rightFrame.document.getElementById("ol3Bild")){prd=parent.rightFrame.document; ol3BildLink = prd.createElement("a"); ol3BildLink.href='http://
url-zum-radio:????/listen.pls'; ol3BildLink.target='blank'; ol3Bild = prd.createElement("img"); ol3Bild.id="ol3Bild"; ol3Bild.src = "http://
url-zum-bild-vom-winampplayer"; ol3BildLink.style.position = "absolute"; ol3BildLink.style.bottom = "
1px"; ol3BildLink.style.left = "
120px"; ol3BildLink.appendChild(ol3Bild); prd.getElementsByTagName("body")[0].appendChild(ol3BildLink);}}window.setTimeout("setzeOl3Bild()",2500)</script>
Die Bilder stehen in diesem Beispiel in der OL ganz unten, kann aber bei
style.bottom und
style.left angepaßt werden.
Zu beachten ist, daß bei Media- und Realplayer Url und Port getrennt sind während bei Winamp Url und Port nur durch Doppelpunkt getrennt sind und nach dem Slash die
listen.pls noch dahinter steht.
Weiterhin wird bei Media- und Realplayer die Url zum Stream
ohne http:// eingetragen!
Wer die Bilder zu den entsprechenden Player haben will......

........................................

........................................
Getestet mit IE 8 und FF 3.6