<HTML> <script language=javascript> <!-- navigator.plugins.refresh(); titulo=""; titulo_atual=""; numero=0; function troca(){ if (navigator.appName.indexOf("Netscape")!=-1 && document.all) { numero=document.WMPlay.GetMediaInfoString(8); numero=parseInt(numero); } } numero=numero+1; function RegisterEventObservers() { var plugin = document.WMPlay; document.appObs.setByProxyDSNewStreamObserver(plugin, true); troca(); numero=numero-1; } function OnDSNewStreamEvt(oldstate, newstate) { setTimeout('troca();',1000); } function PlayClick () { document.WMPlay.Play(); } function StopClick () { numero=1; document.WMPlay.Stop(); if (navigator.appName.indexOf("Netscape")!=-1 && document.all) document.WMPlay.SetCurrentPosition(0); else document.WMPlay.CurrentPosition = 0; } function PauseClick () { estado=document.WMPlay.PlayState; if(estado==1) document.WMPlay.Play(); else if (estado==2) document.WMPlay.Pause(); } function FowardClick() { document.WMPlay.Next(); } function BackClick() { numero=numero-2; document.WMPlay.Previous(); } function UpVolumeClick() { if (document.WMPlay.Volume <= -300) document.WMPlay.Volume = document.WMPlay.Volume + 300; } function DownVolumeClick() { if ( document.WMPlay.Volume >= -8000) document.WMPlay.Volume = document.WMPlay.Volume - 300; } function VerificaTitulo(titulo) { navigator.plugins.refresh(); xy = titulo; estado=document.WMPlay.PlayState; if (estado == 2) { titulo_atual = document.WMPlay.GetMediaInfoString(8); titulo_atual = parseInt(titulo_atual); numero=titulo_atual; if (xy != titulo_atual) { troca(); } } timerID=setTimeout("VerificaTitulo(titulo_atual)", 5000); } //--> </SCRIPT> <BODY onload=VerificaTitulo(0)> <a href="#"> <img src="imagens/volume_r1_c1.gif" width="15" height="19" border="0" alt="Diminuir Volume" onclick="DownVolumeClick()"> </a> <a href="#"> <img src="imagens/volume.gif" width="46" height="19" border="0"> <a href="#"> <img src="imagens/volume_r1_c3.gif" width="15" height="19" border="0" alt="Aumentar Volume" onclick="UpVolumeClick()"> </a> <a href="#"> <img src="imagens/player_r1_c1.gif" width="28" height="19" border="0" alt="Voltar" onclick="BackClick()"> </a> <a href="#"> <img src="imagens/play.gif" width="52" height="19" border="0" alt="Iniciar" onclick="PlayClick()"> </a> <a href="#"> <img src="imagens/player_r1_c3.gif" width="28" height="19" border="0" alt="Pausa" onclick="PauseClick()"> </a> <a href="#"> <img src="imagens/player_r1_c4.gif" width="28" height="19" border="0" alt="Parar" onclick="StopClick()"> </a> <a href="#"> <img src="imagens/player_r1_c5.gif" width="28" height="19" border="0" alt="Avançar" onclick="FowardClick()"></a> <OBJECT ID="WMPlay" width=139 height=19 border=0 CLASSID="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95F" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5, 1,52,701" standby="" type="application/x-oleobject"> <param name="FileName" value="<?echo;?>"> <param name="TransparentAtStart" value="True"> <param name="ShowControls" value="0"> <param name="ShowDisplay" value="0"> <param name="ShowStatusBar" value="1"> <param name="AutoSize" value="0"> <EMBED type="application/x-mplayer2" pluginspage="http://download.microsoft.com/download/winmediaplayer/nsplugin/6.4/WIN98/EN- US/wmpplugin.exe" src="silverchair_freak.wav" NAME=WMPlay ShowControls=0 ShowStatusBar=1 displaysize="0" width=140 height=20> </EMBED> </body> </html>