Ir para conteúdo
Fórum Script Brasil

romereza

Membros
  • Total de itens

    1
  • Registro em

  • Última visita

Sobre romereza

romereza's Achievements

0

Reputação

  1. alow galera me ajudem, estou com um código de um playlist em javascrit(não domino muito a parte avançada), e não consigo colocar para rodar no firefox, segue abaixo o código: <script language=JavaScript> <!-- 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 = 5; wma = new Array(); autor = new Array(); titulos = new Array(); wma[0]= "http://p.audio.uol.com.br/circuitope/playlist/nacaozumbi_futura_f01.wma"; autor[0] = ""; titulos[0]= "Nação Zumbi - Futura - Hoje, amanhã..."; wma[1]= "http://p.audio.uol.com.br/circuitope/playlist/alessandraleao_f01.wma"; autor[1] = ""; titulos[1]= "Alessandra Leão - Brinquedo de Tambor..."; wma[2]= "http://p.audio.uol.com.br/circuitope/playlist/eddie_metropolitano_f13.wma"; autor[2] = ""; titulos[2]= "Eddie - Metropolitano - Quando a maré..."; wma[3]= "http://p.audio.uol.com.br/circuitope/playlist/azulao_f05.wma"; autor[3] = ""; titulos[3]= "Azulão - Solte o Azulão - Cabecilé"; wma[4]= "http://p.audio.uol.com.br/circuitope/playlist/mombojo_homemespuma_f08.wma"; autor[4] = ""; titulos[4]= "Mombojó - Homem-espuma - Faltamente"; 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 voltar() { a = a - 1; b = maxmusic; if (a < 0){ a = maxmusic-1; } 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="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="troca();inicio(); onFF();"> <div id="Layer1" style="position:absolute; left:0px; top:0px; width:348px; height:30px; z-index:0"><img src="imagens/bg_radio.gif" width="238" height="14" border="0" usemap="#Map2"> <map name="Map2"> <area shape="rect" coords="47,1,57,14" href="java script:onFF();" alt="Próxima"> <area shape="rect" coords="17,2,26,12" href="java script:onStop();" alt="Parar"> <area shape="rect" coords="2,1,14,12" href="java script:onPlay();" alt="Executar"> <area shape="circle" coords="200,64,3" href="java script:voltar();" alt="xxxx"> <area shape="circle" coords="113,63,0" href="java script:onFF();" alt="Próxima"> <area shape="circle" coords="75,63,0" href="java script:onStop();" alt="Parar"> <area shape="circle" coords="28,64,3" href="java script:onPlay();" alt="Executar"> <area shape="rect" coords="30,2,42,12" href="java script:voltar();" alt="Anterior"> </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> <div class=display id=mautor style="HEIGHT: 14px; LEFT: 42px; POSITION: absolute; TOP: 37px; WIDTH: 100px; Z-INDEX: 1;"></div> <div class=display id=mnome style="HEIGHT: 14px; LEFT: 61px; POSITION: absolute; TOP: 1px; WIDTH: 230px; Z-INDEX: 1"></div> </body> </html>[/codebox]
×
×
  • Criar Novo...