Foros del Web

Foros del Web (http://www.forosdelweb.com/)
-   HTML (http://www.forosdelweb.com/f4/)
-   -   incluir html en html (http://www.forosdelweb.com/f4/incluir-html-html-98383/)

Jóse 28/08/2002 12:30

incluir html en html
 
Hola,
es posible incluir un archivo html, en otro archivo html.
Por ejemplo si no quiero utilizar frames y deseo un menú en todas las páginas podría en todas estas incluir un archivo con ese menu.
Se puede?
En ASP lo hago pero en paginas HTML no conozco.
Gracias

Jóse

hugorei 28/08/2002 14:42

Re: incluir html en html
 
NO SE ENTIENDE BIEN LA PREGUNTA , SI QUERES UN MENU EN TODAS LAS PAGINAS SIMPLEMENTE USA SIEMPRE EL MISMO ESQUELETO EN TODAS Y LISTO, QUE ES ESO DE INCLUIR HTML EN HTML ? ESTAMO DICIENDO SIEMPRE LO MISMO ?

USA EL DREAMWEVER MX Y OLVIDATE DEL CODIGO HTML ES EL MEJOR PROGRAMA PARA DISEÑAR PAGINAS WEB Y TE GENERA EL CODIGO NO NECESITAS SABER HTML , OBVIAMENTE QUE ES CONVENIENTE TENER UNA NOSION DE LA ETIQUETAS PRINCIPALES DE HTML.

SUERTE

HUGO

LuisDJ 28/08/2002 15:49

Re: incluir html en html
 
Puedes usar los bordes compartidos de FrontPage aunke FrontPage es un editor del nabo pero igual te sirve ;)

. 28/08/2002 15:59

Re: incluir html en html
 
utiliza javascript externos

document.write('<a href=pagina.html>')
document.write('<a href=pagina2.html>')
etc ...

después los llamas desde los archivos donde quieras que aparezcan

y cuando quieras actualizar el menu solo modificas un archivo y se cambia en todos los demas

CORE 29/08/2002 04:14

Re: incluir html en html
 
<!--#include virtual="tupagina.htm" -->

asi tiene que quedar el codigo igual solo modifica tupagina.htrm
tu server tiene que soportar ServerSideIncludes

Maycol 29/08/2002 04:24

Re: incluir html en html
 
Jóse si lo que te dice "CORE" no te va haz lo que hace "."(menudo nombre ;)), aqui te muestro un ejemplo:

index.htm
--------

<script language="javascript" src="menu.js">alert('Fallo No se pudo cargar el menu');</script>

--------


menu.js
--------

document.write('Menu<br>');
document.write('link1');
document.write('lo que sea');
document.write('....');

--------


Si no me confundo te debe funcionar.

Saludos.


<img src=http://www.talleresdelweb.com/~mariojp/cool.gif align=left>Visita:<br>&nbsp;<a href=http://www.talleresdelweb.com target=_blank>Talleres del Web</a><br>&nbsp;<a href=http://www.mumu-weee.com target=_blank>Mumu Weee</a>


La zona horaria es GMT -6. Ahora son las 10:24.

Desarrollado por vBulletin® Versión 3.8.7
Derechos de Autor ©2000 - 2026, Jelsoft Enterprises Ltd.