Ir para conteúdo
Fórum Script Brasil
  • 0

Rádio On-line


Gladisson

Pergunta

8 respostass a esta questão

Posts Recomendados

  • 0
<HTML>

<HEAD>

<TITLE>RADIO</TITLE>

<script language="javascript">

function caricaimg(){

image1 = new Image();

image1.src = "abbassadown.jpg";

image1 = new Image();

image1.src = "abbassaup.jpg";

image1 = new Image();

image1.src = "alzadown.jpg";

image1 = new Image();

image1.src = "alzaup.jpg";

image1 = new Image();

image1.src = "imgradio/closedown.jpg";

image1 = new Image();

image1.src = "imgradio/closesel.jpg";

image1 = new Image();

image1.src = "imgradio/closeup.jpg";

image1 = new Image();

image1.src = "lamp.gif";

image1 = new Image();

image1.src = "verde.jpg";

image1 = new Image();

image1.src = "rosso.jpg";

}

var valore = "Seleziona"

function alza(){

if (MediaPlayer.Volume != 0)

  MediaPlayer.Volume = MediaPlayer.Volume + 200

}

function abbassa(){

if (MediaPlayer.Volume != -10000)

  MediaPlayer.Volume = MediaPlayer.Volume - 200

}

function sel(){

if (staz.value != "")

  window.setTimeout("ascolta()",50)

else

  MediaPlayer.FileName = staz.value

 

stat.innerHTML  = "&nbsp;In Attesa"

kbps.innerHTML  = "&nbsp;In Attesa"

perc.innerHTML  = "&nbsp;In Attesa"

 

}

function ascolta(){

MediaPlayer.SendOpenStateChangeEvents = "true"

MediaPlayer.FileName = staz.value

MediaPlayer.AutoStart = "True"

window.setInterval ("stato()",800)

}

function stato(){

kbps.innerHTML  = "&nbsp;" + parseInt(MediaPlayer.Bandwidth / 1024) + " Kbps"

perc.innerHTML  = "&nbsp;" + MediaPlayer.BufferingProgress + " %"

valore = MediaPlayer.OpenState 

if (valore == 0){

  valore = "&nbsp;In Attesa"

  attivo.src = "rosso.jpg"

}

if (valore == 1){

  valore = "Apertura.."

  attivo.src = "lamp.gif"

}

if (valore == 2){

  valore = "Apertura.."

  attivo.src = "lamp.gif"

}

if (valore == 3){

  valore = "Ricerca.."

  attivo.src = "lamp.gif"

}

if (valore == 4){

  valore = "Connesso.."

  attivo.src = "lamp.gif"

}

if (valore == 5){

  valore = "Buffering.."

  attivo.src = "lamp.gif"

}

if (valore == 6){

  valore = "On-Air !!"

  attivo.src = "verde.jpg"

}

stat.innerHTML =  valore

}

function noright() {

if (event.button==2)

alert('não tente fazer outra vez.. Usa !!! :-)')

}

function girasu(img){

volsu.src = img

}

function giragiu(img){

volgiu.src = img

}

function chiudiradio(){

if (confirm("que fechar a radio ? :-(")){

top.window.close()

}

}

</script>

<link rel="stylesheet" href="../stily.css">

</HEAD>

<BODY class="body2" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" onload="self.focus();ascolta();caricaimg()" onmousedown="noright()">

<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="tx">

  <tr>

    <td width="100%" class="tx1" align="left" valign="middle" colspan="2">

      <div align="center"><img src="../img/rad_br.gif"></div>

    </td>

  </tr>

  <tr>

    <td width="50%" align="left" valign="middle"><IMG id=attivo alt="Status" src="rosso.jpg" border=0></td>

    <td width="50%" align="right" valign="middle"><img id="volgiu" onclick="abbassa()" onmouseup="giragiu('abbassaup.jpg')" onmousedown="giragiu('abbassadown.jpg')" src="abbassaup.jpg" alt="Volume Down" border="0"><font class="tx">

      VOL </font><img id="volsu" onclick="alza()" onmouseup="girasu('alzaup.jpg')" onmousedown="girasu('alzadown.jpg')" src="alzaup.jpg" alt="Volume Up" border="0"></td>

  </tr>

  <tr>

    <td width="100%" colspan="2" height="30" align="center">

      <select name="staz" onchange="sel()" class="tx" style="width:120">

        <option selected>Stop !! </option>

        <option value="http://radioclick.globo.com/playercontent/newPlayer2/wm/csplaylist.asp?cssid=20087">Radio

        Carnevale</option>

        <option value="mms://freeza.atarde.com.br/104FM">104 FM (Salvador) </option>

        <option value="mms://mplayer.convoy.com.br/mundi.asx">Ponta Grossa (PR)</option>

        <option value="mms://200.226.124.8/mpbfm">MPB 90,3 FM(RJ)</option>

        <option value="http://www.radios.com.br/cgibin/jump.cgi?ID=937">Rádio

        Ondas 97.7 FM (RJ)</option>

      </select>

    </td>

  </tr>

  <tr>

    <td width="40%"><font class="tx">&nbsp;&nbsp;Stato:</font></td>

    <td width="60%">

      <div id="stat" class="tx">&nbsp;In Attesa</div>

    </td>

  </tr>

  <tr>

    <td width="40%"><font class="tx">&nbsp;&nbsp;Buffer:</font></td>

    <td width="60%">

      <div id="perc" class="tx">&nbsp;In Attesa</div>

    </td>

  </tr>

  <tr>

    <td width="40%"><font class="tx">&nbsp;&nbsp;Speed:</font></td>

    <td width="60%">

      <div id="kbps" class="tx">&nbsp;In Attesa</div>

    </td>

  </tr>

</table>

<div style="VISIBILITY: hidden; POSITION: absolute">

<OBJECT id=MediaPlayer style="LEFT: 0px; WIDTH: 82px; TOP: 0px; HEIGHT: 16px"

codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715

type=application/x-oleobject height=16

standby="Loading Microsoft® Windows® Media Player components..." width=82

classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95><PARAM NAME="AudioStream" VALUE="-1"><PARAM NAME="AutoSize" VALUE="0"><PARAM NAME="AutoStart" VALUE="-1"><PARAM NAME="AnimationAtStart" VALUE="-1"><PARAM NAME="AllowScan" VALUE="-1"><PARAM NAME="AllowChangeDisplaySize" VALUE="-1"><PARAM NAME="AutoRewind" VALUE="0"><PARAM NAME="Balance" VALUE="0"><PARAM NAME="BaseURL" VALUE=""><PARAM NAME="BufferingTime" VALUE="5"><PARAM NAME="CaptioningID" VALUE=""><PARAM NAME="ClickToPlay" VALUE="-1"><PARAM NAME="CursorType" VALUE="0"><PARAM NAME="CurrentPosition" VALUE="-1"><PARAM NAME="CurrentMarker" VALUE="0"><PARAM NAME="DefaultFrame" VALUE=""><PARAM NAME="DisplayBackColor" VALUE="0"><PARAM NAME="DisplayForeColor" VALUE="16777215"><PARAM NAME="DisplayMode" VALUE="0"><PARAM NAME="DisplaySize" VALUE="4"><PARAM NAME="Enabled" VALUE="-1"><PARAM NAME="EnableContextMenu" VALUE="-1"><PARAM NAME="EnablePositionControls" VALUE="-1"><PARAM NAME="EnableFullScreenControls" VALUE="0"><PARAM NAME="EnableTracker" VALUE="-1"><PARAM NAME="Filename" VALUE=""><PARAM NAME="InvokeURLs" VALUE="-1"><PARAM NAME="Language" VALUE="-1"><PARAM NAME="Mute" VALUE="0"><PARAM NAME="PlayCount" VALUE="1"><PARAM NAME="PreviewMode" VALUE="0"><PARAM NAME="Rate" VALUE="1"><PARAM NAME="SAMILang" VALUE=""><PARAM NAME="SAMIStyle" VALUE=""><PARAM NAME="SAMIFileName" VALUE=""><PARAM NAME="SelectionStart" VALUE="-1"><PARAM NAME="SelectionEnd" VALUE="-1"><PARAM NAME="SendOpenStateChangeEvents" VALUE="-1"><PARAM NAME="SendWarningEvents" VALUE="-1"><PARAM NAME="SendErrorEvents" VALUE="-1"><PARAM NAME="SendKeyboardEvents" VALUE="0"><PARAM NAME="SendMouseClickEvents" VALUE="0"><PARAM NAME="SendMouseMoveEvents" VALUE="0"><PARAM NAME="SendPlayStateChangeEvents" VALUE="-1"><PARAM NAME="ShowCaptioning" VALUE="0"><PARAM NAME="ShowControls" VALUE="-1"><PARAM NAME="ShowAudioControls" VALUE="-1"><PARAM NAME="ShowDisplay" VALUE="0"><PARAM NAME="ShowGotoBar" VALUE="0"><PARAM NAME="ShowPositionControls" VALUE="-1"><PARAM NAME="ShowStatusBar" VALUE="0"><PARAM NAME="ShowTracker" VALUE="-1"><PARAM NAME="TransparentAtStart" VALUE="0"><PARAM NAME="VideoBorderWidth" VALUE="0"><PARAM NAME="VideoBorderColor" VALUE="0"><PARAM NAME="VideoBorder3D" VALUE="0"><PARAM NAME="Volume" VALUE="-600"><PARAM NAME="WindowlessVideo" VALUE="0"></OBJECT>

</div>

</BODY>

</HTML>

ecco a minha radio :D

http://www.brasileitalia.net//031/rbr.asp

Link para o comentário
Compartilhar em outros sites

  • 0
Valeu...

Mais eu queria que fosse pré programada por mim... Tipo o da Terra.

http://radio.terra.com.br/

O site que estou desenvolvendo é o: http://zonagospel.com/

Valeu. :D

uma radio como aquela deve ser feita com um linguagio tipo asp o php

com javascript

um dos files musicais da staçao Brasil è este come se forse um cd

renovando a pagina tem outros

http://mediaibox.terra.com.br/tabelas/gera...&IDREF7=MR36373

se faz uma radio como aquela mi diz eu também quero!!!!! :D

Link para o comentário
Compartilhar em outros sites

  • 0

<HTML>

<HEAD>

<TITLE>RADIO</TITLE>

&lt;script language="javascript">

function caricaimg(){

image1 = new Image();

image1.src = "abbassadown.jpg";

image1 = new Image();

image1.src = "abbassaup.jpg";

image1 = new Image();

image1.src = "alzadown.jpg";

image1 = new Image();

image1.src = "alzaup.jpg";

image1 = new Image();

image1.src = "imgradio/closedown.jpg";

image1 = new Image();

image1.src = "imgradio/closesel.jpg";

image1 = new Image();

image1.src = "imgradio/closeup.jpg";

image1 = new Image();

image1.src = "lamp.gif";

image1 = new Image();

image1.src = "verde.jpg";

image1 = new Image();

image1.src = "rosso.jpg";

}

var valore = "Seleziona"

function alza(){

if (MediaPlayer.Volume != 0)

  MediaPlayer.Volume = MediaPlayer.Volume + 200

}

function abbassa(){

if (MediaPlayer.Volume != -10000)

  MediaPlayer.Volume = MediaPlayer.Volume - 200

}

function sel(){

if (staz.value != "")

  window.setTimeout("ascolta()",50)

else

  MediaPlayer.FileName = staz.value

 

stat.innerHTML  = "&nbsp;In Attesa"

kbps.innerHTML  = "&nbsp;In Attesa"

perc.innerHTML  = "&nbsp;In Attesa"

 

}

function ascolta(){

MediaPlayer.SendOpenStateChangeEvents = "true"

MediaPlayer.FileName = staz.value

MediaPlayer.AutoStart = "True"

window.setInterval ("stato()",800)

}

function stato(){

kbps.innerHTML  = "&nbsp;" + parseInt(MediaPlayer.Bandwidth / 1024) + " Kbps"

perc.innerHTML  = "&nbsp;" + MediaPlayer.BufferingProgress + " %"

valore = MediaPlayer.OpenState 

if (valore == 0){

  valore = "&nbsp;In Attesa"

  attivo.src = "rosso.jpg"

}

if (valore == 1){

  valore = "Apertura.."

  attivo.src = "lamp.gif"

}

if (valore == 2){

  valore = "Apertura.."

  attivo.src = "lamp.gif"

}

if (valore == 3){

  valore = "Ricerca.."

  attivo.src = "lamp.gif"

}

if (valore == 4){

  valore = "Connesso.."

  attivo.src = "lamp.gif"

}

if (valore == 5){

  valore = "Buffering.."

  attivo.src = "lamp.gif"

}

if (valore == 6){

  valore = "On-Air !!"

  attivo.src = "verde.jpg"

}

stat.innerHTML =  valore

}

function noright() {

if (event.button==2)

alert('não tente fazer outra vez.. Usa !!! :-)')

}

function girasu(img){

volsu.src = img

}

function giragiu(img){

volgiu.src = img

}

function chiudiradio(){

if (confirm("que fechar a radio ? :-(")){

top.window.close()

}

}

</script>

<link rel="stylesheet" href="../stily.css">

</HEAD>

<BODY class="body2" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" onload="self.focus();ascolta();caricaimg()" onmousedown="noright()">

<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="tx">

  <tr>

    <td width="100%" class="tx1" align="left" valign="middle" colspan="2">

      <div align="center"><img src="../img/rad_br.gif"></div>

    </td>

  </tr>

  <tr>

    <td width="50%" align="left" valign="middle"><IMG id=attivo alt="Status" src="rosso.jpg" border=0></td>

    <td width="50%" align="right" valign="middle"><img id="volgiu" onclick="abbassa()" onmouseup="giragiu('abbassaup.jpg')" onmousedown="giragiu('abbassadown.jpg')" src="abbassaup.jpg" alt="Volume Down" border="0"><font class="tx">

      VOL </font><img id="volsu" onclick="alza()" onmouseup="girasu('alzaup.jpg')" onmousedown="girasu('alzadown.jpg')" src="alzaup.jpg" alt="Volume Up" border="0"></td>

  </tr>

  <tr>

    <td width="100%" colspan="2" height="30" align="center">

      <select name="staz" onchange="sel()" class="tx" style="width:120">

        <option selected>Stop !! </option>

        <option value="http://radioclick.globo.com/playercontent/newPlayer2/wm/csplaylist.asp?cssid=20087">Radio

        Carnevale</option>

        <option value="mms://freeza.atarde.com.br/104FM">104 FM (Salvador) </option>

        <option value="mms://mplayer.convoy.com.br/mundi.asx">Ponta Grossa (PR)</option>

        <option value="mms://200.226.124.8/mpbfm">MPB 90,3 FM(RJ)</option>

        <option value="http://www.radios.com.br/cgibin/jump.cgi?ID=937">Rádio

        Ondas 97.7 FM (RJ)</option>

      </select>

    </td>

  </tr>

  <tr>

    <td width="40%"><font class="tx">&nbsp;&nbsp;Stato:</font></td>

    <td width="60%">

      <div id="stat" class="tx">&nbsp;In Attesa</div>

    </td>

  </tr>

  <tr>

    <td width="40%"><font class="tx">&nbsp;&nbsp;Buffer:</font></td>

    <td width="60%">

      <div id="perc" class="tx">&nbsp;In Attesa</div>

    </td>

  </tr>

  <tr>

    <td width="40%"><font class="tx">&nbsp;&nbsp;Speed:</font></td>

    <td width="60%">

      <div id="kbps" class="tx">&nbsp;In Attesa</div>

    </td>

  </tr>

</table>

<div style="VISIBILITY: hidden; POSITION: absolute">

<OBJECT id=MediaPlayer style="LEFT: 0px; WIDTH: 82px; TOP: 0px; HEIGHT: 16px"

codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715

type=application/x-oleobject height=16

standby="Loading Microsoft® Windows® Media Player components..." width=82

classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95><PARAM NAME="AudioStream" VALUE="-1"><PARAM NAME="AutoSize" VALUE="0"><PARAM NAME="AutoStart" VALUE="-1"><PARAM NAME="AnimationAtStart" VALUE="-1"><PARAM NAME="AllowScan" VALUE="-1"><PARAM NAME="AllowChangeDisplaySize" VALUE="-1"><PARAM NAME="AutoRewind" VALUE="0"><PARAM NAME="Balance" VALUE="0"><PARAM NAME="BaseURL" VALUE=""><PARAM NAME="BufferingTime" VALUE="5"><PARAM NAME="CaptioningID" VALUE=""><PARAM NAME="ClickToPlay" VALUE="-1"><PARAM NAME="CursorType" VALUE="0"><PARAM NAME="CurrentPosition" VALUE="-1"><PARAM NAME="CurrentMarker" VALUE="0"><PARAM NAME="DefaultFrame" VALUE=""><PARAM NAME="DisplayBackColor" VALUE="0"><PARAM NAME="DisplayForeColor" VALUE="16777215"><PARAM NAME="DisplayMode" VALUE="0"><PARAM NAME="DisplaySize" VALUE="4"><PARAM NAME="Enabled" VALUE="-1"><PARAM NAME="EnableContextMenu" VALUE="-1"><PARAM NAME="EnablePositionControls" VALUE="-1"><PARAM NAME="EnableFullScreenControls" VALUE="0"><PARAM NAME="EnableTracker" VALUE="-1"><PARAM NAME="Filename" VALUE=""><PARAM NAME="InvokeURLs" VALUE="-1"><PARAM NAME="Language" VALUE="-1"><PARAM NAME="Mute" VALUE="0"><PARAM NAME="PlayCount" VALUE="1"><PARAM NAME="PreviewMode" VALUE="0"><PARAM NAME="Rate" VALUE="1"><PARAM NAME="SAMILang" VALUE=""><PARAM NAME="SAMIStyle" VALUE=""><PARAM NAME="SAMIFileName" VALUE=""><PARAM NAME="SelectionStart" VALUE="-1"><PARAM NAME="SelectionEnd" VALUE="-1"><PARAM NAME="SendOpenStateChangeEvents" VALUE="-1"><PARAM NAME="SendWarningEvents" VALUE="-1"><PARAM NAME="SendErrorEvents" VALUE="-1"><PARAM NAME="SendKeyboardEvents" VALUE="0"><PARAM NAME="SendMouseClickEvents" VALUE="0"><PARAM NAME="SendMouseMoveEvents" VALUE="0"><PARAM NAME="SendPlayStateChangeEvents" VALUE="-1"><PARAM NAME="ShowCaptioning" VALUE="0"><PARAM NAME="ShowControls" VALUE="-1"><PARAM NAME="ShowAudioControls" VALUE="-1"><PARAM NAME="ShowDisplay" VALUE="0"><PARAM NAME="ShowGotoBar" VALUE="0"><PARAM NAME="ShowPositionControls" VALUE="-1"><PARAM NAME="ShowStatusBar" VALUE="0"><PARAM NAME="ShowTracker" VALUE="-1"><PARAM NAME="TransparentAtStart" VALUE="0"><PARAM NAME="VideoBorderWidth" VALUE="0"><PARAM NAME="VideoBorderColor" VALUE="0"><PARAM NAME="VideoBorder3D" VALUE="0"><PARAM NAME="Volume" VALUE="-600"><PARAM NAME="WindowlessVideo" VALUE="0"></OBJECT>

</div>

</BODY>

</HTML>

ecco a minha radio :D

http://www.brasileitalia.net//031/rbr.asp

Eu não entendi muito bem... com este programa eu só consigo ouvir musicas de outraas radio?

Eu tenho um play de radio mais tipo se a pessoa entra p ouvir ela pega a primeia musica, ela não tem uma sincronia....

alguém pode me ajudar?

Link para o comentário
Compartilhar em outros sites

  • 0

Porque o aumetar volume e diminuir não está funcionado o código é esse aí abaixo,por favor me ajude

<html>

<head>

<title>.::Lucas Barreto |Rádio::.</title>

<meta name="classification" content="Internet"/>

<meta http-equiv="content-script-type" content="text/javascript"/>

<meta http-equiv="content-style-type" content="text/css"/>

<meta name="robots" content="NOINDEX, NOFOLLOW"/>

<meta name="page_content" content="all"/>

<meta name="distribution" content="Global"/>

<meta name="rating" content="General"/>

<meta name="author" content="Lucas Barreto"/>

<meta name="revisit-after" content="1 days"/>

<meta name="language" content="pt-br"/>

<meta name="doc-class" content="Completed"/>

<meta name="doc-rights" content="Public"/>

<meta name="copyright" content="Lucas Barreto"/>

<meta name="DC.title" content="lucasbarreto.net"/>

<meta name="keywords" content="layout blog, template blog, designer blog, designer publicidade, design publicidade, portfolio publicidade, portfolio design, webdesign, melhorar SEO, layout SEO" />

<META name="GOOGLEBOT-NEWS" content="NOSNIPPET"/>

<link rel="shortcut icon" href="http://lucasbarreto.net/img/favincon.ico"/>

<link href="http://lucasbarreto.net/radio/lb/estilo.css" rel="stylesheet" type="text/css" />

<script language="javascript">

function parar(){

document.getElementById("MP1").style.display = 'none';// correção para Firefox

MP1.Stop();

}

function play(){

document.getElementById("MP1").style.display = '';// correção para Firefox

MP1.Play();

}

function aumenta(){

if (MP1.Volume <= -1000)

MP1.Volume = MP1.Volume + 200;

else

MP1.Volume = 0;

}

function diminui(){

if (MP1r.Volume >= -9000)

MP1.Volume = MP1.Volume - 200;

else

MP1.Volume = -10000;

}

</script>

</head>

<body>

<div id="geral">

<div class="left">

<div class="player">

<div>

</div>

<div class="controles">

<table width="200" border="0" align="center">

<tr>

<td><a href="http://lucasbarreto.webs.com"><img src="http://www.trumpetmoments.com/images/logo-radio.png" /></a></td>

<td><a href="java script:play();"><img src="http://www.radioopcaofm.com.br/player/img/play.png" /></a></td>

<td><a href="java script:parar();"><img src="http://www.radioopcaofm.com.br/player/img/stop.png" /></a></td>

<td><a href="java script:player('aumenta');void(0);"><img src="http://www.radioopcaofm.com.br/player/img/+.png" /></a></td>

<td><a href="java script:player('diminui');void(0);"><img src="http://www.radioopcaofm.com.br/player/img/-.png" /></a></td>

<td><iframe width="500px" height="40px" frameborder="0" src="http://lucasbarreto.webs.com/locutor.htm" scrolling="no" style="float:left;"></iframe></td>

<td><a href="http://twitter.com/"><img src="http://seanclark.com/wp-content/plugins/social-profiles-widget/images/default/Twitter_32x32.png" /></a></td>

<td><a href="http://facebook.com"><img src="http://www.portal2014.org.br/images/menu/box-opcoes-facebook.gif" /></a></td>

<td><a href="" onClick="window.open('http://lucasbarreto.webs.com/pedido.htm','Janela','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=300,left=25,top=25'); return false;"><img src="http://www.terrafmlagamar.com.br/player/pedido_musica.jpg" /></a></td>

</tr>

</table>

<embed height="0" id="MP1"

width="0" flashvars="file=http://70.36.96.82:15830/;type=mp3&volume=100&bufferlength=10&autostart=true" allowscriptaccess="always" quality="high" src="http://lucasbarreto.webs.com/player.swf" type="application/x-shockwave-flash"></embed>

</div>

</div>

</div>

</div>

</body>

</html>

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...