HTML - frames en HTML

 
Vista:

frames en HTML

Publicado por Miguel A. Sánchez (1 intervención) el 11/10/2001 10:33:41
Hola a tod@s.

Estoy intentando visualizar frames en una página, pero no surte efecto. El código escrito en html es:

Documento principal:

<HTML>
<head><title>DOCUMENTO DE PRUEBA NÚMERO 2</title>
</head>

<img src="e:\imagen1.jpg">

<table border="0" width="100%" height="50" bgcolor="#003366" cellspacing="10"cellpadding="10">
<td width="70%" height="2" bordercolor="#003366" bgcolor="003366" align="center"><h3><font face="arial"><b><u>DOCUMENTO DE PRUEBA NÚMERO 2</u></b></h3></td>
</table>

<frameset cols="248,719*" frameborder="yes" border="3" framespacing="0" rows="*">
<frame name="leftFrame" scrolling="auto" noresize src="C:\Mis documentos\frame1.html">
<frame name="mainFrame" scrolling="auto" noresize src="C:\Mis documentos\frame2.html">
</frameset>

<body bgcolor="#003366" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" top margin="0" leftmargin="7" rightmargin="7" marginwidth="0" marginheight="0">

</body>
<noframes>

</HTML>

Documento C:\Mis documentos\frame1.html

<HTML>
<head><title>FRAME 1</title>

</head>
<body bgcolor="#003366" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" top margin="0" leftmargin="7" rightmargin="7" marginwidth="0" marginheight="0">
<br>%
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:frames en HTML

Publicado por Carlos B. (23 intervenciones) el 11/10/2001 19:40:00
hola.
Creo que tienes bastantes errores:
1. Todos los enlaces deben ser "Relativos" y no "absolutos", es decir que no deben estar referidos con respecto a la raíz (C:\Mis docu....), debes direccionarlo con sólo el nombre si está en el mismo directorio, o si está en un directorio superior (../pagina.html), o si esta en un subdirectorio con: nombre del (directorio/pagina.html).

Otro problema es que cuando usas frames, este te agrupa las páginas, pero no te muestra lo que esá contenido en <body></body>

Lo que está entre </head> y <body> no es visible

y lo último es que las etiquetas no se deben repetir, estas son las que le dan la estructura a la página:
<html>
<head><title></title>
</head>
<body>

</body>
</html>

Chao......
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar