Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

[AYUDA] Problemas con frameset y música en php

Estas en el tema de [AYUDA] Problemas con frameset y música en php en el foro de Sistemas de gestión de contenidos en Foros del Web. Bueno estoy utilizando el siguiente frameset: <html> <head> <title>nombre del sitio</title> </head> <FRAMESET ROWS="0,*" frameborder="no" border="0" noresize="noresize"> <FRAME SRC="about :blank" NAME="hidden"> <FRAME SRC="/main/?" NAME="MainFrame"> </FRAMESET> ...
  #1 (permalink)  
Antiguo 30/04/2009, 13:45
Avatar de FaNaTyCk  
Fecha de Ingreso: enero-2008
Mensajes: 54
Antigüedad: 16 años, 4 meses
Puntos: 2
Pregunta [AYUDA] Problemas con frameset y música en php

Bueno estoy utilizando el siguiente frameset:

<html>
<head>
<title>nombre del sitio</title>
</head>
<FRAMESET ROWS="0,*" frameborder="no" border="0" noresize="noresize">
<FRAME SRC="about:blank" NAME="hidden">
<FRAME SRC="/main/?" NAME="MainFrame">
</FRAMESET>
</html>

El tema es que quiero llamar a otra pagina, ejemplo:

<html>
<head>
<title>nombre del sitio</title>
</head>
<FRAMESET ROWS="0,*" frameborder="no" border="0" noresize="noresize">
<FRAME SRC="about:blank" NAME="hidden">
<FRAME SRC="/main/?" NAME="MainFrame">
<FRAME NAME="MusicFrame" src="/main/musica.php">
</FRAMESET>
</html>

Ahora al hacer eso no se reproduce la música del archivo musica.php (también probé con musica.htm y html):

<embed src="ht tp://localhost/main/media/music.swf" menu="false" quality="high" width="1" height="1" name="index" type="application/x-shockwave-flash" pluginspage="ht tp://w ww.macromedia.com/go/getflashplayer" flashvars="playList=ht tp://localhost/main/sound/music.xml&ShowEQ=1&initVol=100" wmode="transparent"></embed>

El tema es que si saco el frameset me funciona la música pero deja de mostrarme la pagina del directorio "main", ¿comprenden?.

Como puedo hacer para que me muestre la pagina y se escuche la música de fondo sin que se corte.

PD: los espacios entre los ht tp y w ww son por que sino no me deja postear, no es que ese sea el problema.

:)
  #2 (permalink)  
Antiguo 01/05/2009, 12:18
Avatar de FaNaTyCk  
Fecha de Ingreso: enero-2008
Mensajes: 54
Antigüedad: 16 años, 4 meses
Puntos: 2
Respuesta: [AYUDA] Problemas con frameset y música en php

Actualice el index.php a:

<html>
<head>
<title>nombre del sitio</title>
</head>
<FRAMESET ROWS="0,*" frameborder="no" border="0" noresize="noresize">
<FRAME SRC="about:blank" NAME="hidden">
<FRAME SRC="/main/?" NAME="MainFrame">
</FRAMESET><noframes></noframes>
</html>

Actualice el musica.php a:

<html>
<head>
<title>nombre del sitio</title>
<script>
if(top==self) top.location="./../inicio.html"
</script>
</head>
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="col"><embed src="ht tp://localhost/main/media/music.swf" menu="false" quality="high" width="100" height="100" name="index" type="application/x-shockwave-flash" pluginspage="ht tp://w ww.macromedia.com/go/getflashplayer" flashvars="playList=ht tp://localhost/main/sound/music.xml&ShowEQ=1&initVol=100" wmode="transparent"></embed></th>
</tr>
</table>
</body>
</html>

Y probé algo que vi en la web de telefónica, pero sigue sin funcionar:

<html>
<head>
<title>nombre del sitio</title>
</head>
<FRAMESET ROWS="0,*" frameborder="no" border="0" noresize="noresize">
<FRAME SRC="about:blank" NAME="hidden">
<FRAME SRC="/main/?" NAME="MainFrame">
</FRAMESET><noframes><body><?php include ('main/musica.php');?></body></noframes>
</html>

También probé sacar el include php y agregar directamente el contenido del musica.php, tampoco funciono. Pobre ambos métodos fuera de la etiqueta noframes y tampoco hubo resultados positivos.

Ayuda por favor!.
  #3 (permalink)  
Antiguo 05/05/2009, 13:24
Avatar de FaNaTyCk  
Fecha de Ingreso: enero-2008
Mensajes: 54
Antigüedad: 16 años, 4 meses
Puntos: 2
Respuesta: [AYUDA] Problemas con frameset y música en php

Acabo de probar con:

<html>
<head>
<title>nombre del sitio</title>
</head>
<FRAMESET ROWS="0,*,0" frameborder="no" border="0" noresize="noresize">
<FRAME SRC="about:blank" NAME="hidden">
<FRAME SRC="/main/?" NAME="MainFrame">
<FRAME NAME="MusicFrame" src="/main/musica.php">
</FRAMESET>
</html>

Edite el ROWS; Nuevamente sin resultados favorables.

:(.
  #4 (permalink)  
Antiguo 15/03/2010, 12:36
 
Fecha de Ingreso: marzo-2010
Mensajes: 2
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: [AYUDA] Problemas con frameset y música en php

Hola! Pudiste resolver el problema? Me pasa lo mismo y no se como resolverlo. Espero tu respuesta. Gracias.
  #5 (permalink)  
Antiguo 16/03/2010, 02:22
Avatar de FaNaTyCk  
Fecha de Ingreso: enero-2008
Mensajes: 54
Antigüedad: 16 años, 4 meses
Puntos: 2
De acuerdo Respuesta: [AYUDA] Problemas con frameset y música en php

Cita:
Iniciado por volga Ver Mensaje
Hola! Pudiste resolver el problema? Me pasa lo mismo y no se como resolverlo. Espero tu respuesta. Gracias.
Me hubieses enviado un PM, envés de revivir. Recomiendo que leas el reglamento del sitio.

Aquí tienes la solución que yo he encontrado para mis sitios de presentaciones:

index.php o html
Código PHP:
<!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" />
<
meta name="description" content="aca las descripciones" />
<
meta name="keywords" content="aca las keywords con comas entre medio" />
<
title>aca nombre del sitio</title>
</
head>
<
frameset rows="0,*" frameborder="0" border="0" framespacing="0">
    <
frame name="MusicaFrame" src="main/musica.php" frameborder="0" noresize="noresize"  />
    <
frame name="MainFrame" src="main/?" frameborder="0" noresize="noresize"  />
</
frameset><noframes>Tu navegador no soporta frames.</noframes>
</
html>
</
html
Recomiendo llenar con al menos 30 palabras la descripción y los keywords para mejorar el SEO de tu sitio, como sabrás, un index con frames de este tipo no atrae ningún buscador.

"Main/?" es la carpeta del sitio. El primer frameset (invisible con *) carga el archivo que debería cargar la música.

En musica.php:

Código PHP:
<!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>musica</title>
<
script>
if(
top==selftop.location="./../inicio.html"
</script>
</head>
<body>
<script type="text/javascript" src="js/swfobject.js"></script>
        
<div id="flashPlayer">
  This text will be replaced by the flash music player.
</div>

<script type="text/javascript">
   var so = new SWFObject("media/playerMini.swf", "mymovie", "100", "30", "7", "#FFFFFF");
   so.addVariable("autoPlay", "yes");
   so.addVariable("soundPath", "musica/nombre_del_tema.mp3");
   so.write("flashPlayer");
</script>
</body>
</html> 
En mi caso el

Código PHP:
<script>
if(
top==selftop.location="./../inicio.html"
</script> 
Uso en el .htaccess:

Código:
RewriteEngine On
RewriteRule ^index.html index.php [L]
RewriteRule ^inicio.html index.php [L]
Pero puedes ponerle index.php o index.html nosé que usaras. Yo uso y recomiendo php. Claro que el código que te paso esta limpio, y en php tal ves no es necesario, depende el uso que le darás.

Ese ultimo <script> es para que no puedan ver individualmente musica.php sin tener un frame de por medio. Caso contrario lo devolverá al index.php donde esta el frame principal.

En mis comienzos utilice este reproductor:
http://www.premiumbeat.com/flash_resources/free_flash_music_player/mini_flash_mp3_player.php

Que tengas suerte..

Saludos.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:59.