Afisare player cu radio dupa optiune din lista select
Scris: Dum Noi 25, 2012
Am aici un cod pentru a alege postul de radio si a asculta online:
Problema e ca nu merge la ce radio doresc eu sa pun .
La alte radio merge sa pun adresa si canta de acolo. dar daca vreau sa pun de la kiss fm , sau radio zu nu merge .
Asa ca mam gandit daca nu merge asa cum e sa-l modific, in loc de play sa afiseze player-ul.
Dar problema e ca nu stiu ce sa pun in loc de "Playit" ca sa afiseze player-ul in functie de radioul selectat.
Cod: SelectaĊ£i tot
<script type="text/javascript">
<!--
function PlayIt(){
document.getElementById("music1").innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="221" height="46" bgcolor="#FFFFFF"><param name="movie" value="http://www.museter.com/ffmp3-config.swf"/><param name="flashvars" value="url='+document.getElementById('cancion').value+';&lang=en&codec=mp3&volume=80&autoplay=true&traking=true&jsevents=false&buffering=5&skin=http://www.museter.com/skins/compact/ffmp3-compact.xml&title=ScapaDePlictiseala.tk"/><param name="wmode" value="window"/><param name="allowscriptaccess" value="always"/><param name="scale" value="noscale"/><embed src="http://www.museter.com/ffmp3-config.swf" flashvars="url='+document.getElementById('cancion').value+';&lang=en&codec=mp3&volume=80&autoplay=true&traking=true&jsevents=false&buffering=5&skin=http://www.museter.com/skins/compact/ffmp3-compact.xml&title=Scapadeplictiseala.tk" width="221" scale="noscale" height="46" wmode="window" bgcolor="#FFFFFF" allowscriptaccess="always" type="application/x-shockwave-flash"/></object>'
}
//-->
</script>
<div class="box" align="center">
<select name="" id="cancion" onchange="PlayIt()" size="1">
<option value="none">Alege Radio</option>
<option value="http://live.eliberadio.ro:8002/" style="color:red">Radio Kiss FM</option>
<option value="http://live.eliberadio.ro:8000/" style="color:green">Radio 21</option>
</select>
<span id="music1"></span>
</div>
La alte radio merge sa pun adresa si canta de acolo. dar daca vreau sa pun de la kiss fm , sau radio zu nu merge .
Asa ca mam gandit daca nu merge asa cum e sa-l modific, in loc de play sa afiseze player-ul.
Dar problema e ca nu stiu ce sa pun in loc de "Playit" ca sa afiseze player-ul in functie de radioul selectat.