Foros del Web » Programando para Internet » Javascript »

Cada página dentro de su frame y nunca por separado...

Estas en el tema de Cada página dentro de su frame y nunca por separado... en el foro de Javascript en Foros del Web. Buenas a todos, tras mucho tiempo sigo con el mismo problema con los frames. Les voy a dar una última oportunidad si alguno puede darme ...
  #1 (permalink)  
Antiguo 25/02/2007, 12:06
 
Fecha de Ingreso: mayo-2005
Mensajes: 16
Antigüedad: 19 años
Puntos: 0
Cada página dentro de su frame y nunca por separado...

Buenas a todos, tras mucho tiempo sigo con el mismo problema con los frames. Les voy a dar una última oportunidad si alguno puede darme luz a este dilema...
Supongamos que tengo una página index.php que tiene un iframe que carga la página home.html por defecto. Bien, se me ocurrió que alguien podría acceder directamente a home.html y no cargarla dentro del iframe de index.php. Ante esta duda me ayudaron con este script
Código:
<script type="text/javascript">
if(top==self) top.location="index.php"
</script>
Genial!! incluyendo este script en el body de home.html si intentaban abrirla directamente redirecionaba a index.php. Pero qué pasa con las otras páginas que quiero que aparezcan en el iframe de index.php pero no se cargan por defecto? (Ej.: objetivos.html). Si incluía el mismo código en ellas y alguien accedía desde google directamente a objetivos.html se redirecionaba también a index.php pero cargando lógicamente home.html y no objetivos.html.

Realizé una nueva consulta y amablemente me facilitaron estas líneas:

1. A colocar en objetivos.html
Código:
<script type="text/javascript">
if(top==self) top.location=”index.php?p=objetivos”
</script>
2. A colocar en index.php
Código:
if($_GET[’p']==’objetivos’) $url = ‘objetivos.html’;
3. A colocar también en index.php
Código:
<iframe src=”<?=$url?>”></iframe>
La cosa es que por más que pruebo no consigo que funcione. En objetivos no hay problema pues cuando accedo a objetivos.html se redirecciona a index.php?p=objetivos pero creo que el código 2 y 3 no se me leen correctamente en index.php. Supongo que ambos irán el body, el 2 precedido por <script type="text/javascript"> y finalizado por </script>, y el 3 en el iframe, pero no va… el frame aparece en blanco ¿Que estoy haciendo mal?

Dreamweaver me marca "<?=$url?>”> como error y cuando sustituyo el frame src por "?=$url?" aparece index.php nuevamente dentro de su frame

¿alguien puede echarme un cable? Muchas gracias a todos.
  #2 (permalink)  
Antiguo 27/02/2007, 11:23
Avatar de Carlitos
Usuario no validado
 
Fecha de Ingreso: mayo-2001
Ubicación: Zaragoza
Mensajes: 1.304
Antigüedad: 23 años
Puntos: 25
Re: Cada página dentro de su frame y nunca por separado...

Faq 80 de javascript
  #3 (permalink)  
Antiguo 01/03/2007, 09:28
 
Fecha de Ingreso: mayo-2005
Mensajes: 16
Antigüedad: 19 años
Puntos: 0
Re: Cada página dentro de su frame y nunca por separado...

Gracias Carlos, pero este vale solo para estructuras frameset que cargan varias páginas.
Alguien sabe como sería para una página con un iframe?...
  #4 (permalink)  
Antiguo 01/03/2007, 09:44
Avatar de Carlitos
Usuario no validado
 
Fecha de Ingreso: mayo-2001
Ubicación: Zaragoza
Mensajes: 1.304
Antigüedad: 23 años
Puntos: 25
Re: Cada página dentro de su frame y nunca por separado...

Adaptación de la faq nª 80 para utilizar IFRAMES en vez de una estrutura frameset.

Añade esto en tu página index.htm (todo esto, debe modificar a la actual etiqueta <iframe ... )
Código:
<script> 
var cad = new String(document.location);
document.write('<iframe  src=')
if (cad.indexOf("?") != -1)
   {
   document.write(cad.substring(cad.indexOf("?")+1,cad.length))
   }
else
   {
   document.write('"pagina_por_defecto.htm"')
   }
document.write("></iframe>")
</script>
y en la cabecera de tus páginas:

Código:
<script>
if(top==self) top.location="index.htm?"+document.location.pathname
</script>
A ver si así te sirve.
  #5 (permalink)  
Antiguo 01/03/2007, 10:35
 
Fecha de Ingreso: mayo-2005
Mensajes: 16
Antigüedad: 19 años
Puntos: 0
Re: Cada página dentro de su frame y nunca por separado...

Gracias Carlos...Casí pero no...

Esto no me modifica el ifame sino que crea un iframe nuevo en index.html. Supongo que el segundo código que me indicas se pone en todas las páginas que se deben cargar en el iframe (incluido la que se carga por defecto (home.html)) Bien, pues haciendo esto me pasa lo siguiente:

Cuando entro a index.html aparece con el misno contenido en el iframe nuevo que se me crea que el iframe ya exintente (home.html)

Cuando entro directamente a home.html el redireciona a index.html, cargando en mi iframe home.html y el nuevo que se me crea, explorer no puede mostrar nada...

Cuando entro directamente a otra pagina que deberia cargarse en el iframe de index.html (ej. contacto.html) redireciona a index.html pero cargando en mi iframe home.html y en el nuevo que se me crea, explorer no puede mostrar nada...

No se si habria que indicar el frame name del iframe a modificar para que no cree otro... o algo así. Si sustituyo la etiqueta iframe por el script que me das ya no habria duplicado pero explorer sigue sin mostrar nada en las redireciones, ademas de que no sabría como ponerle propiedades como borde o tamaño al iframe...

Si se te ocurre algo aqui estoy. Agradezco mucho tu ayuda. Saludos

Última edición por Goser; 01/03/2007 a las 10:52
  #6 (permalink)  
Antiguo 01/03/2007, 16:40
Avatar de Carlitos
Usuario no validado
 
Fecha de Ingreso: mayo-2001
Ubicación: Zaragoza
Mensajes: 1.304
Antigüedad: 23 años
Puntos: 25
Re: Cada página dentro de su frame y nunca por separado...

mmmm

pon tu código de index.htm

y le echamos un vistazo.
  #7 (permalink)  
Antiguo 01/03/2007, 20:03
 
Fecha de Ingreso: mayo-2005
Mensajes: 16
Antigüedad: 19 años
Puntos: 0
Re: Cada página dentro de su frame y nunca por separado...

Ahi va, aunque seguro que me pillais más de un fallo gordo... He tenido que eliminar los enlaces y borrar parte para que entrara en los 10000 caracteres.

Gracias!!!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "ENLACE BORRADO">
<html xmlns="ENLACE BORRADO">
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="shortcut icon" href="favicon.ico" />
<style type="text/css">
<!--
body {
background-image: url(images/fondo.gif);
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.Estilo5 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8px;
color: #003366;
font-weight: bold;
height: 12px;
border: 0px none #FFFFFF;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

<link href="image.css" rel="stylesheet" type="text/css" />

<script>
var cad = new String(document.location);
document.write('<iframe src=')
if (cad.indexOf("?") != -1)
{
document.write(cad.substring(cad.indexOf("?")+1,ca d.length))
}
else
{
document.write('"home.html"')
}
document.write("></iframe>")
</script>

</head>
<body bgcolor="#FFFFFF" onload="MM_preloadImages('images/ucm.gif','images/madrimasd.gif','images/venomyc.gif','images/medreonet.gif','images/docencia2.gif','images/euus.gif')">
<table width="841" border="0" align="center" cellpadding="0" cellspacing="0" id="Tabla_01">
<tr>
<td colspan="7">
<img id="index_01" src="images/index_01.gif" width="840" height="20" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="20" alt="" /></td>
</tr>
<tr>
<td rowspan="28">
<img id="index_02" src="images/index_02.gif" width="20" height="575" alt="" /></td>
<td colspan="5">
<img id="title" src="images/title.gif" width="800" height="100" alt="" /></td>
<td rowspan="28">
<img src="images/index_04.gif" alt="" name="index_04" width="20" height="575" border="0" id="index_04" /></td>
<td>
<img src="images/espacio.gif" width="1" height="100" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_05" src="images/index_05.gif" width="100" height="10" alt="" /></td>
<td colspan="3">
<img id="index_06" src="images/index_06.gif" width="580" height="4" alt="" /></td>
<td rowspan="3">
<img src="images/index_07.gif" alt="" name="index_07" width="120" height="25" border="0" usemap="#index_07Map" id="index_07" /></td>
<td>
<img src="images/espacio.gif" width="1" height="4" alt="" /></td>
</tr>
<tr>
<td rowspan="24">
<img id="index_08" src="images/index_08.gif" width="3" height="381" alt="" /></td>
<td rowspan="23"><iframe src="home.html" name="ventana" width="574" height="377" scrolling="no" frameborder="0" id="ventana"></iframe></td>
<td rowspan="24">
<img id="index_10" src="images/index_10.gif" width="3" height="381" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="6" alt="" /></td>
</tr>
<tr>
<td rowspan="2"></td>
<td>
<img src="images/espacio.gif" width="1" height="15" alt="" /></td>
</tr>
<tr>
<td rowspan="3"></td>
<td>
<img src="images/espacio.gif" width="1" height="10" alt="" /></td>
</tr>
<tr>
<td>
<img id="lab0" src="images/lab0.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td>
<img id="invest0" src="images/invest0.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td><a href="cursosonline.html" target="ventana" onmouseover="MM_swapImage('Image68','','images/docencia2.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/doc0.gif" width="100" height="25" border="0" /></a></td>
<td rowspan="2"></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="serv0" src="images/serv0.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="14" alt="" /></td>
</tr>
<tr>
<td rowspan="3"></td>
<td>
<img src="images/espacio.gif" width="1" height="11" alt="" /></td>
</tr>
<tr>
<td>
<img id="act0" src="images/act0.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td rowspan="2"></td>
<td>
<img src="images/espacio.gif" width="1" height="4" alt="" /></td>
</tr>
<tr>
<td rowspan="2"></td>
<td>
<img src="images/espacio.gif" width="1" height="21" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_22" src="images/index_22.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="19" alt="" /></td>
</tr>
<tr>
<td rowspan="3"></td>
<td>
<img src="images/espacio.gif" width="1" height="6" alt="" /></td>
</tr>
<tr>
<td>
<img id="index_24" src="images/index_24.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_25" src="images/index_25.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="9" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<a href="med-reo-net.html" target="ventana" onmouseover="MM_swapImage('Image67','','images/medreonet.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/medreonet1.gif" alt="MED REO NET" name="Image67" width="120" height="40" border="0" id="Image67" /></a><a href="rrhh1.html" target="ventana"></a></td>
<td>
<img src="images/espacio.gif" width="1" height="16" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_27" src="images/index_27.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="24" alt="" /></td>
</tr>
<tr>
<td rowspan="3" bgcolor="#FFFFFF">
<a href="EUUS-SAFEFOOD.html" target="ventana" onmouseover="MM_swapImage('Image68','','images/euus.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/euus1.gif" alt="EUUS-SAFEFOOD" name="Image68" width="120" height="40" border="0" id="Image68" /></a><a href="rrhh2.html" target="ventana"></a></td>
<td>
<img src="images/espacio.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>
<td>
<img id="index_29" src="images/index_29.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_30" src="images/index_30.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="14" alt="" /></td>
</tr>
<tr>
<td rowspan="4">
<img id="index1_16032" src="images/index1_16-32.gif" width="120" height="61" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="11" alt="" /></td>
</tr>
<tr>
<td>
<img id="index_32" src="images/index_32.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_33" src="images/index_33.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="21" alt="" /></td>
</tr>
<tr>
<td>
<img id="index_34" src="images/index_34.gif" width="574" height="4" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="4" alt="" /></td>
</tr>
<tr>
<td>
<img id="index_35" src="images/index_35.gif" width="100" height="65" alt="" /></td>
<td colspan="3" bgcolor="#FFFFFF"><p align="center" class="Estilo5">&nbsp;</p>
</td>
<td>
<img id="index1_36" src="images/index1_36.gif" width="120" height="65" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="65" alt="" /></td>
</tr>
<tr>
<td colspan="5">
<img id="index_38" src="images/index_38.gif" width="800" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
</table>
<p align="center"><a href="ENLACE BORRADO" target="_blank"><img src="images/hosting.gif" alt="Universidad Complutense" width="300" height="50" border="0" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','Images/home2.gif',0)"></a>

</body>
</html>
  #8 (permalink)  
Antiguo 02/03/2007, 04:45
 
Fecha de Ingreso: mayo-2005
Mensajes: 16
Antigüedad: 19 años
Puntos: 0
Re: Cada página dentro de su frame y nunca por separado...

Bueno, aunque me quedo con la mosca detras de la oreja de porque no me funciona tu script y te agradeceria que me dijerais donde está el fallo... He de deciros que finalmente encontre navegando por la red un código que si me funciona a la primera ... Aqui os lo dejo por si puede servir a alguien y a ver si me contais que os parece. Gracias nuevamente.

Siendo index.html la página que incluye el iframe, home.html la página que se carga por defecto en el iframe y contacto.html otra página que se carga en el iframe pero no por defecto, el código es el siguiente:

En la cabecera de index.html

Código:
<script type="text/javascript">
function writeIframe() {
var s = location.search.substring(1);
var src = s.length?s:"home.html";
document.write('<iframe src="'+src+'" name="ventana" width="574" height="377" scrolling="no" frameborder="0" id="ventana"></iframe>');
}
</script>
Sustituir la etiqueta del iframe en index.html por:

Código:
<script type="text/javascript">writeIframe();</script>
En el cuerpo de home.html, contacto.html y resto de páginas que se cargan en el iframe. Ejemplo para contacto.html:

Código:
<script>
if (parent == self) location.replace("index.html?contacto.html");
</script>
Saludos

Goser

Última edición por Goser; 02/03/2007 a las 04:56
  #9 (permalink)  
Antiguo 02/03/2007, 10:52
Avatar de Carlitos
Usuario no validado
 
Fecha de Ingreso: mayo-2001
Ubicación: Zaragoza
Mensajes: 1.304
Antigüedad: 23 años
Puntos: 25
Re: Cada página dentro de su frame y nunca por separado...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "ENLACE BORRADO">
<html xmlns="ENLACE BORRADO">
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="shortcut icon" href="favicon.ico" />
<style type="text/css">
<!--
body {
background-image: url(images/fondo.gif);
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.Estilo5 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8px;
color: #003366;
font-weight: bold;
height: 12px;
border: 0px none #FFFFFF;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

<link href="image.css" rel="stylesheet" type="text/css" />


</head>
<body bgcolor="#FFFFFF" onload="MM_preloadImages('images/ucm.gif','images/madrimasd.gif','images/venomyc.gif','images/medreonet.gif','images/docencia2.gif','images/euus.gif')">
<table width="841" border="0" align="center" cellpadding="0" cellspacing="0" id="Tabla_01">
<tr>
<td colspan="7">
<img id="index_01" src="images/index_01.gif" width="840" height="20" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="20" alt="" /></td>
</tr>
<tr>
<td rowspan="28">
<img id="index_02" src="images/index_02.gif" width="20" height="575" alt="" /></td>
<td colspan="5">
<img id="title" src="images/title.gif" width="800" height="100" alt="" /></td>
<td rowspan="28">
<img src="images/index_04.gif" alt="" name="index_04" width="20" height="575" border="0" id="index_04" /></td>
<td>
<img src="images/espacio.gif" width="1" height="100" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_05" src="images/index_05.gif" width="100" height="10" alt="" /></td>
<td colspan="3">
<img id="index_06" src="images/index_06.gif" width="580" height="4" alt="" /></td>
<td rowspan="3">
<img src="images/index_07.gif" alt="" name="index_07" width="120" height="25" border="0" usemap="#index_07Map" id="index_07" /></td>
<td>
<img src="images/espacio.gif" width="1" height="4" alt="" /></td>
</tr>
<tr>
<td rowspan="24">
<img id="index_08" src="images/index_08.gif" width="3" height="381" alt="" /></td>
<td rowspan="23">


<script>
var cad = new String(document.location);
document.write('<iframe name="ventana" width="574" height="377" scrolling="no" frameborder="0" id="ventana" src=')
if (cad.indexOf("?") != -1)
{
document.write(cad.substring(cad.indexOf("?")+1,ca d.length))
}
else
{
document.write('"home.html"')
}
document.write("></iframe>")
</script>


</td>
<td rowspan="24">
<img id="index_10" src="images/index_10.gif" width="3" height="381" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="6" alt="" /></td>
</tr>
<tr>
<td rowspan="2"></td>
<td>
<img src="images/espacio.gif" width="1" height="15" alt="" /></td>
</tr>
<tr>
<td rowspan="3"></td>
<td>
<img src="images/espacio.gif" width="1" height="10" alt="" /></td>
</tr>
<tr>
<td>
<img id="lab0" src="images/lab0.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td>
<img id="invest0" src="images/invest0.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td><a href="cursosonline.html" target="ventana" onmouseover="MM_swapImage('Image68','','images/docencia2.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/doc0.gif" width="100" height="25" border="0" /></a></td>
<td rowspan="2"></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="serv0" src="images/serv0.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="14" alt="" /></td>
</tr>
<tr>
<td rowspan="3"></td>
<td>
<img src="images/espacio.gif" width="1" height="11" alt="" /></td>
</tr>
<tr>
<td>
<img id="act0" src="images/act0.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td rowspan="2"></td>
<td>
<img src="images/espacio.gif" width="1" height="4" alt="" /></td>
</tr>
<tr>
<td rowspan="2"></td>
<td>
<img src="images/espacio.gif" width="1" height="21" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_22" src="images/index_22.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="19" alt="" /></td>
</tr>
<tr>
<td rowspan="3"></td>
<td>
<img src="images/espacio.gif" width="1" height="6" alt="" /></td>
</tr>
<tr>
<td>
<img id="index_24" src="images/index_24.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_25" src="images/index_25.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="9" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<a href="med-reo-net.html" target="ventana" onmouseover="MM_swapImage('Image67','','images/medreonet.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/medreonet1.gif" alt="MED REO NET" name="Image67" width="120" height="40" border="0" id="Image67" /></a><a href="rrhh1.html" target="ventana"></a></td>
<td>
<img src="images/espacio.gif" width="1" height="16" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_27" src="images/index_27.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="24" alt="" /></td>
</tr>
<tr>
<td rowspan="3" bgcolor="#FFFFFF">
<a href="EUUS-SAFEFOOD.html" target="ventana" onmouseover="MM_swapImage('Image68','','images/euus.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/euus1.gif" alt="EUUS-SAFEFOOD" name="Image68" width="120" height="40" border="0" id="Image68" /></a><a href="rrhh2.html" target="ventana"></a></td>
<td>
<img src="images/espacio.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>
<td>
<img id="index_29" src="images/index_29.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_30" src="images/index_30.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="14" alt="" /></td>
</tr>
<tr>
<td rowspan="4">
<img id="index1_16032" src="images/index1_16-32.gif" width="120" height="61" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="11" alt="" /></td>
</tr>
<tr>
<td>
<img id="index_32" src="images/index_32.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="index_33" src="images/index_33.gif" width="100" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="21" alt="" /></td>
</tr>
<tr>
<td>
<img id="index_34" src="images/index_34.gif" width="574" height="4" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="4" alt="" /></td>
</tr>
<tr>
<td>
<img id="index_35" src="images/index_35.gif" width="100" height="65" alt="" /></td>
<td colspan="3" bgcolor="#FFFFFF"><p align="center" class="Estilo5">&nbsp;</p>
</td>
<td>
<img id="index1_36" src="images/index1_36.gif" width="120" height="65" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="65" alt="" /></td>
</tr>
<tr>
<td colspan="5">
<img id="index_38" src="images/index_38.gif" width="800" height="25" alt="" /></td>
<td>
<img src="images/espacio.gif" width="1" height="25" alt="" /></td>
</tr>
</table>
<p align="center"><a href="ENLACE BORRADO" target="_blank"><img src="images/hosting.gif" alt="Universidad Complutense" width="300" height="50" border="0" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','Images/home2.gif',0)"></a>

</body>
</html>




Así te debería funcionar. Fíjate que no habías sustituido lo de la etiqueta IFRAME por el código. lo que habías hecho, es poner dicho código en el HEAD

Básicamente, este script hace lo mismo que el que has encontrado tú.

Pero bueno. Si ya lo has resuelto... pues nada. A funcionar.

Un saludo.
  #10 (permalink)  
Antiguo 02/03/2007, 14:22
 
Fecha de Ingreso: mayo-2005
Mensajes: 16
Antigüedad: 19 años
Puntos: 0
Re: Cada página dentro de su frame y nunca por separado...

Gracias Carlos, que torpe soy...

Un saludo
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 02:19.