Ver Mensaje Individual
  #10 (permalink)  
Antiguo 25/05/2009, 16:44
Avatar de danistrein
danistrein
 
Fecha de Ingreso: septiembre-2008
Ubicación: Salta Capital
Mensajes: 550
Antigüedad: 15 años, 7 meses
Puntos: 9
Respuesta: como meter una pagina dentro de otra

mira esto y te daras cuenta:


index.htm:
Código HTML:
<!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=utf-8" />
<title>Ejemplo Flames</title>
</head>

<body>
Esta es la web principal la cual no cambia solo cambia lo que esta dentro del flame!!
<br />
<a href="1.htm"target="contenido"><strong>Primera Web</strong></a> |
<a href="2.htm"target="contenido"><strong>Segunda Web</strong></a> |
<a href="3.htm"target="contenido"><strong>Tercera Web</strong></a> 

<br />
Puedes ponerle en cual lugar lo que quieras nada va a cambiar solamente lo que esta dentro del flame
<iframe src="1.htm" name="contenido" width="605" height="200" frameborder="0"></iframe>
<br />
:D espero que te sirba<br />
al flame puedes modificar las medias del recuadro:<br />
anchura=  width="605"<br />
altura= height="200"<br />
este es la web por defaul que te va aparecer en el flame: src="1.htm"<br />
si quieres que se cambie el flame a otras seciones como puse el ejemplo de : Primera, Segunda Y tercera Web<br />
solo nesesitas crear un hipervinculo y solo agregarle el target="contenido" la cual cambiara lo que esta dentro del flame
</body>
</html> 
1.htm:
Código HTML:
<!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=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
Primera Web ...
</body>
</html> 
2.htm:
Código HTML:
<!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=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
Segunda Web ...
</body>
</html> 
3.htm:
Código HTML:
<!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=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
Tercera Web  ...
</body>
</html> 
jeje espero que te sirba yo antes era fanatico de los flames hasta que conoci los includes php , suerte!!
espero que te sirba la info