Ir para conteúdo
Fórum CódigoFonte.net
Entre para seguir isso  
fabioanesio

[Dicas] Playlist de musica

Recommended Posts

O código mais procurando no Código fonte biggrin.gif

Abaixo esta o código

<html>
<head>
<title>ManowS Radio</title>
<STYLE type=text/css>
.display { COLOR: #000000; FONT-FAMILY: Geneva, Arial, Helvetica, san-serif; FONT-SIZE: 11px; TEXT-ALIGN: left; font-weight: bold }
body,td,th {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FFFFFF;
	font-weight: bold;
}
a {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FFFFFF;
	font-weight: bold;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #FFFFFF;
}
a:hover {
	text-decoration: none;
	color: #FFFFFF;
}
a:active {
	text-decoration: none;
	color: #FFFFFF;
}
</STYLE>
<script language=JavaScript>
<!--

//Disable right click script III- By Renigade ([email protected])
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// --> 
</script>
<script language=JavaScript>
<!--
var a = -1
var maxmusic = 9999999999999999;

wma = new Array();
autor = new Array();
titulos = new Array();


wma[0]= "http://www.manowss.web.br.com/musica/malha_funk.wma";
autor[0] = "Malha Funk";
titulos[0]= "Malha Funk";
wma[1]= "http://www.manowss.web.br.com/musica/glamurosa.mp3";
autor[1] = "Glamurosa";
titulos[1]= "Glamurosa";
wma[2]= "http://www.manowss.web.br.com/musica/Dona_Gigi.mp3";
autor[2] = "Dona gigi";
titulos[2]= "Dona gigi";
wma[3]= "http://www.manowss.web.br.com/musica/n_de_say.mp3";
autor[3] = "N de Say";
titulos[3]= "N de Say";
wma[4]= "http://www.manowss.web.br.com/musica/run_it.mp3";
autor[4] = "Run it";
titulos[4]= "Run it";
wma[5]= "http://www.manowss.web.br.com/musica/bumm.mp3";
autor[5] = "Ela vai voltar";
titulos[5]= "Ela vai voltar";
wma[6]= "http://www.manowss.web.br.com/musica/pump_it.mp3";
autor[6] = "Pump it";
titulos[6]= "Pump it";
wma[7]= "http://www.manowss.web.br.com/musica/dont_cha.mp3";
autor[7] = "Don't Cha";
titulos[7]= "Don't Cha";
wma[8]= "http://www.manowss.web.br.com/musica/my_place.mp3";
autor[8] = "My place";
titulos[8]= "My place";
wma[9]= "http://www.manowss.web.br.com/musica/pimp.wma";
autor[9] = "P.I.M.P";
titulos[9]= "P.I.M.P";
wma[10]= "http://www.manowss.web.br.com/musica/pon_the_replay.mp3";
autor[10] = "Pon the Replay";
titulos[10]= "Pon the Replay";
wma[11]= "http://www.manowss.web.br.com/musica/infected.wma";
autor[11] = "Infected";
titulos[11]= "Infected";
wma[12]= "http://www.manowss.web.br.com/musica/pop_corn.mp3";
autor[12] = "Crazy Frog - PoP Corn";
titulos[12]= "Crazy Frog - PoP Corn";
wma[13]= "http://www.manowss.web.br.com/musica/crazy_frog.mp3";
autor[13] = "Crazy Frog";
titulos[13]= "Crazy Frog";
wma[14]= "http://www.manowss.web.br.com/musica/me_namora.wma";
autor[14] = "Me Namora";
titulos[14]= "Me Namora";
wma[15]= "http://www.manowss.web.br.com/musica/gold_digger.mp3";
autor[15] = "Gold digger";
titulos[15]= "Gold digger";
wma[16]= "http://www.manows.iconexaogospel.com/so_sick.mp3";
autor[16] = "Ne yo - So Sick";
titulos[16]= "Ne yo - So Sick";
wma[17]= "http://www.manowss.web.br.com/musica/hips_dont_lie.mp3";
autor[17] = "Hips don't lie";
titulos[17]= "Hips don't lie";
wma[18]= "http://www.manowss.web.br.com/musica/Grillz.mp3";
autor[18] = "Grillz";
titulos[18]= "Grillz";
wma[19]= "http://www.manowss.web.br.com/musica/beats_goes_on.mp3";
autor[19] = "Beats goes On";
titulos[19]= "Beats goes On"; 
wma[20]= "http://www.manowss.web.br.com/musica/white_house.mp3";
autor[20] = "White House";
titulos[20]= "White House"; 
wma[21]= "http://www.manowss.web.br.com/musica/komodor.wma";
autor[21] = "Komodor";
titulos[21]= "Komodor"; 
wma[22]= "http://www.manowss.web.br.com/musica/remember.mp3";
autor[22] = "Remenber";
titulos[22]= "Remenber"; 

ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
parada=0

function inicio() {
	document.all.mautor.innerText=autor[0];
	document.all.mnome.innerText=titulos[0];
}

var bWin32IE;
if ((navigator.userAgent.indexOf("IE") != "-1") && (navigator.userAgent.length > 1)) {
	bWin32IE = true;
} else {
	bWin32IE = false;
}

function fechar()
{
	window.close()
}

function troca() {
	if (MediaPlayer.PlayState==0) {
  if (parada==0){
  	onFF();
  	onPlay();
  }
	}
	setTimeout('troca();',1000); 
}

function layerWrite(id,nestref,text) {	
	if (ns4) {
  if (nestref)
  	var lyr = eval('document.'+nestref+'.document.'+id+'.document');
  else 
  	var lyr = document.layers[id].document;
  lyr.open();
  lyr.write(text);
  lyr.close();
	} else if (ie4) { 
  document.all[id].innerHTML = text;
	}
}

function mostra() {
	if (ns4){
  document.layers["mnome"].document.open()
  document.layers["mnome"].document.write(titulos[a])
  document.layers["mnome"].document.close()

  document.layers["mautor"].document.open()
  document.layers["mautor"].document.write(autor[a])
  document.layers["mautor"].document.close()
	}

	if (ie4){
  document.all.mnome.innerText=titulos[a];
  document.all.mautor.innerText=autor[a];
	}
}


function mudwma(k) {
	MediaPlayer.Filename=wma[k];
	mostra();
}

function onFF() {
	a = a + 1;
	b = maxmusic;
	if (a == b){
  a = 0;
	}
	mudwma(a);
}

function onPause() {
	//if( MediaPlayer.PlayState == 1 )
	//	MediaPlayer.Play();
	//else if (MediaPlayer.PlayState == 2)
	//	MediaPlayer.Pause();
	MediaPlayer.Pause();
}

function onPlay() {
	if(MediaPlayer.PlayState == 0){
  MediaPlayer.Play();
  parada=0;
	}
	mostra();
}

function onStop() {
	MediaPlayer.Stop();
    parada=1;
}

function onVolumeUp() {
	if (MediaPlayer.Volume <= -1000) {
  MediaPlayer.Volume = MediaPlayer.Volume + 1000;
	}
}

function onVolumeDown() {
	if (MediaPlayer.Volume >= -9000) {
  MediaPlayer.Volume = MediaPlayer.Volume - 1000;
	}
}

/*
function MM_changeProp(objName,x,theProp,theValue) { //v3.0
	var obj = MM_findObj(objName);
	if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
}
*/
//-->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Fireworks 4.0  Dreamweaver 4.0 target.  Created Tue Jun 04 09:27:07 GMT-0300 (Hora padrão leste da Am. Sul) 2002-->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" onLoad="troca();inicio(); onFF();">
<div id="Layer1" style="position:absolute; left:1px; top:0px; width:106px; height:93px; z-index:0"><img src="radio_img.jpg" width="296" height="102" border="0" usemap="#Map2"> 
  <map name="Map2">
    <area shape="circle" coords="19,311,16" href="JavaScript:onPlay();" alt="Executar">
    <area shape="circle" coords="50,311,9" href="JavaScript:onStop();" alt="Parar">
    <area shape="circle" coords="75,311,9" href="JavaScript:onFF();" alt="Pr&oacute;xima">
  <area shape="rect" coords="17,69,57,91" href="JavaScript:onPlay();">
  <area shape="rect" coords="64,69,97,92" href="JavaScript:onStop();">
  <area shape="rect" coords="106,70,135,89" href="JavaScript:onFF();">
  <area shape="rect" coords="227,88,295,98" href="javascript:abrir('http://www.manowss.web.br.com/programacao.php');">
  </map>
</div>
<div id="Layer2" style="position:absolute; left:73px; top:267px; width:220px; height:32px; z-index:4"> 
  <object id="MediaPlayer" width="0" height="0" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"   codebase="http://activex.microsoft.com/activex/%20%20%20controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" viewastext>
    <param name="AutoStart" value="1">
    <param name="TransparentAtStart" value="1">
    <param name="ShowControls" value="0">
    <param name="ShowDisplay" value="0">
    <param name="ShowStatusBar" value="1">
    <param name="AutoSize" value="False">
    <param name="AnimationAtStart" value="False">
    <param name="Filename" value="">
    <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/mediaplayer/download/default.asp" border="0" src="" autostart="True" transparentatstart="True" showcontrols="0" showdisplay="0" showstatusbar="1" animationatstart="False" id="MediaPlayer" designtimesp="9716" autosize="False" filename="" width="0" height="0"> 
  </embed> </object>
</div>
<table width="0" border="0" cellpadding="0" cellspacing="0">
  <!-- fwtable fwsrc="player.png" fwbase="index.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="1" -->
  <tr> 
    <td height="273" valign="bottom">&nbsp; </td>
  </tr>
  <tr> 
    <td height="87" valign="top" align="center">
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="31" align="center" valign="middle">&nbsp;</td>
        </tr>
        <tr> 
          <td height="30" valign="middle"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="21%">&nbsp;</td>
                <td width="79%">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td height="27" valign="middle"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="22%">&nbsp;</td>
                <td width="78%"> 
                  <div class=display id=mautor style="HEIGHT: 14px; LEFT: 26px; POSITION: absolute; TOP: 337px; WIDTH: 234px; Z-INDEX: 1; visibility: hidden"></div>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table><script language="JavaScript">

function abrir(URL) {

   var width = 800;
   var height = 600;

   var left = 99;
   var top = 99;

   window.open(URL,'ManowS', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=yes, toolbar=yes, location=yes, directories=no, menubar=yes, resizable=yes, fullscreen=no');

}

</script>
<div class=display id=mnome style="HEIGHT: 14px; LEFT: 155px; POSITION: absolute; TOP: 73px; WIDTH: 121px; Z-INDEX: 1"></div>
</body>
</html>
Para mudar as musica apenas muda o codigo:
wma[0]= "Link da musica";
autor[0] = "Nome da musica";
titulos[0]= "Nome da musica";
wma[1]= "Link da musica 02";
autor[1] = "Nome da musica 02";
titulos[1]= "Nome da musica 02";

OBS: Quando você por uma nova musica muda o numero

1º musica

wma[0]

autor[0]

titulos[0]

2ºmusica

wma[1]

autor[1]

titulos[1]

Não sei se tem erro no codigo, mais com esse codigo você ja pode fazer um melhor.

Espero que gosta.

OBS: Esse codigo foi enviado por dig0w

a imagem do player.

user posted image

Editado por fabioanesio

Compartilhar este post


Link para o post
Compartilhar em outros sites

<html>

<head>

<script LANGUAGE="JavaScript">

<!--

function hidden()

{document.body.style.overflow='hidden';}

//-->

</script>

<script>

self.name="radio"

</script>

<title>Rádio On-line</title>

<style type=text/css>

#fonte{color:#9c9c9c;font-family:verdana;font-size:8pt;text-decoration:none;}

td{color:#cccccc;font-family:tahoma,verdana,arial;font-size:8pt;}

</style>

<script language="javascript">

<!--

var a = -1

wma = new Array();

autor = new Array();

titulos = new Array();

/* sequência das músicas - siga a ordem */

wma[0]= "1.mp3";

autor[0] = " Mandy Moore";

titulos[0]= " Only Hope";

wma[1]= "2.mp3";

autor[1] = " Bon Jovi";

titulos[1]= " Misunderstood";

wma[2]= "3.mp3";

autor[2] = "Bon Jovi";

titulos[2]= " Always";

/* sequência das músicas */

var maxmusic = 3; // número de músicas na rádio

ns4 = (document.layers)? true:false

ie4 = (document.all)? true:false

parada=0

function inicio() {

document.all.mautor.innerText=autor[0];

document.all.mnome.innerText=titulos[0];

}

var bWin32IE;

if ((navigator.userAgent.indexOf("IE") != "-1") && (navigator.userAgent.length > 1)) {

bWin32IE = true;

} else {

bWin32IE = false;

}

function fechar()

{

window.close()

}

function troca() {

if (MediaPlayer.PlayState==0) {

if (parada==0){

onFF();

onPlay();

}

}

setTimeout('troca();',1000);

}

function layerWrite(id,nestref,text) {

if (ns4) {

if (nestref)

var lyr = eval('document.'+nestref+'.document.'+id+'.document');

else

var lyr = document.layers[id].document;

lyr.open();

lyr.write(text);

lyr.close();

} else if (ie4) {

document.all[id].innerHTML = text;

}

}

function mostra() {

if (ns4){

document.layers["mnome"].document.open()

document.layers["mnome"].document.write(titulos[a])

document.layers["mnome"].document.close()

document.layers["mautor"].document.open()

document.layers["mautor"].document.write(autor[a])

document.layers["mautor"].document.close()

var proximamusic;

proximamusic = (a + 1);

b = maxmusic;

if (proximamusic == B){

proximamusic = 0;

}

else

{

proximamusic = (a + 1);

}

document.layers["proxima"].document.open()

document.layers["proxima"].document.write(autor[a + 1] + "/" + titulos[a + 1])

document.layers["proxima"].document.close()

}

if (ie4){

document.all.mnome.innerText=titulos[a];

document.all.mautor.innerText=autor[a];

var proximamusic;

proximamusic = (a + 1);

b = maxmusic;

if (proximamusic == B){

proximamusic = 0;

}

else

{

proximamusic = (a + 1);

}

document.all.proxima.innerText=autor[proximamusic] + "|" + titulos[proximamusic];

}

}

function mudwma(k) {

MediaPlayer.Filename=wma[k];

mostra();

}

function onFF() {

a = a + 1;

b = maxmusic;

if (a == B){

a = 0;

}

mudwma(a);

}

function onFF2() {

a = a - 1;

b = maxmusic;

if (a == B){

a = 0;

}

mudwma(a);

}

function onPause() {

if (navigator.appName.indexOf('Netscape') != -1)

estado=document.MediaPlayer.GetPlayState();

else

estado=document.MediaPlayer.PlayState;

if(estado==1)

document.MediaPlayer.Play();

else if (estado==2)

document.MediaPlayer.Pause();

}

function onPlay() {

if(MediaPlayer.PlayState == 0){

MediaPlayer.Play();

parada=0;

}

mostra();

}

function onStop() {

MediaPlayer.Stop();

parada=1;

}

function onVolumeUp() {

if (MediaPlayer.Volume <= -300) {

MediaPlayer.Volume = MediaPlayer.Volume + 300;

}

}

function onVolumeDown() {

if (MediaPlayer.Volume >= -8000) {

MediaPlayer.Volume = MediaPlayer.Volume - 300;

}

}

/*

function MM_changeProp(objName,x,theProp,theValue) { //v3.0

var obj = MM_findObj(objName);

if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");

}

*/

//-->

</SCRIPT>

</head>

<body onload="hidden();troca();inicio(); onFF();">

<center>

<table border="0" bgcolor=#000000>

<td>

<table width=270 border="0" bgcolor="#000000">

<tr>

<td height=25 colspan="2" align=center valign=middle>Fastex Gamers</td>

</tr>

<tr>

<td width="30%">&nbsp;Cantor [ a ] :&nbsp;</td>

<td id=mautor></td>

</tr>

<tr>

<td width="20%">&nbsp;Música :</td>

<td id=mnome>&nbsp;</td>

</tr>

<tr>

<td width="15%" height="18">&nbsp;Pr&oacute;xima :&nbsp;</td>

<td width="85%" id=proxima>&nbsp;</td>

</tr>

</table>

<table width="270">

<td valign=middle bgcolor="000000">

<center>

<object id="MediaPlayer" style="border:0px;width:270px;height:20;" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/%20%20%20controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" VIEWASTEXT>

<param name="AutoStart" value="1">

<param name="TransparentAtStart" value="1">

<param name="ShowControls" value="0">

<param name="ShowDisplay" value="0">

<param name="ShowStatusBar" value="1">

<param name="AutoSize" value="False">

<param name="AnimationAtStart" value="False">

<param name="Filename" value="">

<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/mediaplayer/download/default.asp" border="0" src="" autostart="True" transparentatstart="True" showcontrols="0" showdisplay="0" showstatusbar="1" animationatstart="False" id="MediaPlayer" designtimesp="9716" autosize="False" filename="" width="300" height="20"></embed>

</object><br>

<a href="#" onClick="history.go()"><font id=fonte>atualizar</a>

<a href="#" onClick="onFF2()"><font id=fonte>anterior</a>

<a href="#" onClick="onPlay()"><font id=fonte>Tocar</a>

<a href="#" onClick="onStop()"><font id=fonte>Parar</a>

<a href="#" onClick="onPause()"><font id=fonte>Pausar</a>

<a href="#" onClick="onFF()"><font id=fonte>proxima</a>

</center>

</td>

</table>

</td>

</table>

</center>

</body>

</html>

galera esse e um código que eu achei em um site de html e fiz varias modificações nele...

espero que gostem...

Compartilhar este post


Link para o post
Compartilhar em outros sites

Oi amigos , eu estou vendo que vocês estão exibindo códigos fonte ( play) e não esta dando o tutorial de como instala estes códigos . Desculpe a minha ignorância, Mas e que eu sou novo neste ramo de códigos, e estou há dias atrás de um código deste porte.

Testei todos e não apareci nada na tela, apenas o quadrado do play. Por favor, amigos preciso realmente de ajuda neste caso.

Quero colocar áudio (reportagem) no meu site ou blog, da radio.

Podem manda pára o meu imail, eu agradeço irmão.

([email protected])

Compartilhar este post


Link para o post
Compartilhar em outros sites

E aê galera !!!! :)

Olha estou procurando uma forma de colocar um FlashPlayer em uma pagina em html em que a música não pare enquanto o usuário navegue no site.

Tentei usar o (include) php ... mas quando navego a pagina carrega de novo. :(

Gostaria de saber se sabe alguma forma de poder colocar a música no site e que ela não pare de tocar ao navegar !

Grande abraço !!!!!!! B)

Compartilhar este post


Link para o post
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Visitante
Responder

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...
Entre para seguir isso  

×
×
  • Criar Novo...