Re: Como criar um frame fixo na parte superior do site, com um player tocando mú
Posted: Mon Sep 10, 2007 3:04 pm
Seria legal você postar a solução né??
Joomla! Community, help and support.
https://forum.joomla.org/
Code: Select all
<html>
<head>
<title>:: NATANAEL VIDEO ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="195,*" frameborder="NO" border="0" framespacing="0" cols="*">
<frame src="topframe.html" name="topFrame" scrolling="NO" noresize >
<frame src="http://www.natanaelvideo.com.br/home/index.php" name="mainFrame">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>
Nicolai, gostaria de saber como você fez, nesse fim de semana passei ele todo dando uma melhorada em um outro site ( http://www.cpaco.com.br ). Por favor me ajude...igornicolai wrote: custou mas acabei acertando, obrigado a todos pelo auxilio, agora vou desenhar um site novo porque o site ficou tosco coma frame... kkkkk ....
:P
valeuzao galera!
igornicolai wrote:Code: Select all
<html> <head> <title>:: NATANAEL VIDEO ::</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <frameset rows="195,*" frameborder="NO" border="0" framespacing="0" cols="*"> <frame src="topframe.html" name="topFrame" scrolling="NO" noresize > <frame src="http://www.natanaelvideo.com.br/home/index.php" name="mainFrame"> </frameset> <noframes> <body bgcolor="#FFFFFF" text="#000000"> </body> </noframes> </html>
Este também foi o meu caso, estava há meses tentando descobrir como fazer, graças a Deus e a vocês deu certo, valeu companheiroshleorabelo wrote: Aêê...
Estive meio ausente esses dias, mas agora pude ver que conseguiram... Igor conseguiu entender minha idéia.. soh que no frame principal nao precisa colocar o endereço completo, basta apenas o index.php, pois os outros arquivos tb estão na pasta raiz do site...
E como foi comentado, tb acho q fica meio estranho uma pagina com frames, parece site antigo.. hehehe.. mas como o cliente desejava uma musica tocando continuamente, sem pausas, tinha q ser assim..
Abraços e sempre disposto a contribuir...
Elton, eu sofri um bocado para fazer isso e o segredo é o seguinte:eltonmelo wrote:estou com um problema num site. foi criado a iframe para o rádio, um iframe para a página (carregando o arquivo index.php), porém ,quando clico no menu (inicio), ele está chamando o endereço da página, e dai recarrega novamente o iframe do topo, preciso alterar o link do menu principal (inicio), para entrar apenas no inicio. como fazer isso?
Ficaria mais ou menos assim o arquivo index.html que deve ficar na raiz do siteeltonmelo wrote:estou com um problema num site. foi criado a iframe para o rádio, um iframe para a página (carregando o arquivo index.php), porém ,quando clico no menu (inicio), ele está chamando o endereço da página, e dai recarrega novamente o iframe do topo, preciso alterar o link do menu principal (inicio), para entrar apenas no inicio. como fazer isso?
Dei uma olhada agora. Ficou ótimo! Parabéns!!eltonmelo wrote:Arley, obrigado pela sua atenção. mas parece que também há outra solução, ou seja pelo jeito há um plugin java script que impede o reload do frame do topo, eu copei o código de uma rádio de uma amigo, e parece que deu certo - veja em http://www.ibipatobranco.org. - O problema de instalar o joomla em outra pasta, é que muda todos os links, mas vi que é uma solução.
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Rádio Tabajara AM 870 Khz - Ao Vivo</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #E3E3DD;
align: "center"
}
-->
</style>
<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>
</font>
<table border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="825" bgcolor="#E3E3DD"><div align="center">
<div align="center" id="Layer1" style="position:center; width:825px; height:38px; z-index:1; background-image: url(fundo.gif); layer-background-image: url(fundo.gif);">
<object classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" type="application/x-oleobject" width="250" height="37" align="right" standby="Loading MicrosoftÆ Windows Mediaô Player components..." id="MediaPlayer">
<param name="FileName" value="http://tabajara.am.br/main/radio.asx" />
<param name="AutoStart" value="true" />
<param name="ShowStatusBar" value="false" />
<param name="ShowControls" value="true" />
<param name="PlayCount" value="1" />
<param name="TransparentAtStart" value="false" />
<param name="ShowDisplay" value="false" />
<param name="showtracker" value="false" />
<param name="showgotobar" value="false" />
<param name="showpositioncontrols" value="false" />
<param name="showaudiocontrols" value="0" />
<param name="volume" value="1" />
<param name="AllowScan" value="false" />
<param name="showdisplay" value="false" />
<param name="autosize" value="true" />
<!-- MSIE check -->
<embed src="http://tabajara.am.br/main/radio.asx" width="250" height="37" autostart="true" align="right" type="application/x-mplayer2" controls="smallconsole" showcontrols="1" showdisplay="0" showpositioncontrols="0" showstatusbar="0"></embed>
</object>
</div>
</div></td>
</tr>
</table>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2175461-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>
Code: Select all
<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>
<table border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="825" bgcolor="#E3E3DD"><div align="center">
<div align="center" id="Layer1" style="position:center; width:825px; height:38px; z-index:1; background-image: url(fundo.gif); layer-background-image: url(fundo.gif);">
<object classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" type="application/x-oleobject" width="250" height="37" align="right" standby="Loading MicrosoftÆ Windows Mediaô Player components..." id="MediaPlayer">
<param name="FileName" value="http://tabajara.am.br/main/radio.asx" />
<param name="AutoStart" value="true" />
<param name="ShowStatusBar" value="false" />
<param name="ShowControls" value="true" />
<param name="PlayCount" value="1" />
<param name="TransparentAtStart" value="false" />
<param name="ShowDisplay" value="false" />
<param name="showtracker" value="false" />
<param name="showgotobar" value="false" />
<param name="showpositioncontrols" value="false" />
<param name="showaudiocontrols" value="0" />
<param name="volume" value="1" />
<param name="AllowScan" value="false" />
<param name="showdisplay" value="false" />
<param name="autosize" value="true" />
<!-- MSIE check -->
<embed src="http://tabajara.am.br/main/radio.asx" width="250" height="37" autostart="true" align="right" type="application/x-mplayer2" controls="smallconsole" showcontrols="1" showdisplay="0" showpositioncontrols="0" showstatusbar="0"></embed>
</object>
</div>
</div></td>
</tr>
</table>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2175461-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
igornicolai wrote:Vou tentar explicar:
criei uma index na pasta raiz assim:ele chama a index e a topframe.html (que estao na raiz)Code: Select all
<html> <head> <title>:: NATANAEL VIDEO ::</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <frameset rows="195,*" frameborder="NO" border="0" framespacing="0" cols="*"> <frame src="topframe.html" name="topFrame" scrolling="NO" noresize > <frame src="http://www.natanaelvideo.com.br/home/index.php" name="mainFrame"> </frameset> <noframes> <body bgcolor="#FFFFFF" text="#000000"> </body> </noframes> </html>
para visualizar é so acessar o link http://www.natanaelvideo.com.br/home/index.html