include em HTML

PHP, Java, JavaScript, XML, XHTML, HTML, CSS, ASP, Delphi, Assembly, LaTeX, C, UML, Flash, Perl, SQL, Python, Zope, Pascal, WML. Se conhece mais de 3 siglas referidas, este é o forum para si.

Moderadores: Administradores, Moderadores

include em HTML

Mensagempor Speed Dragon » Segunda Fev 28, 2005 1:30

Existe alguma função parecida ao include("pg.php"); mas para html ?

Cumprimentos,
David Magalhães
... Then a japanese tuning company spend a 150.000£ on the engine ...
... so now develops a 1.000 Break Horse Power!
... Not to 60Mph, in 2.8 seconds, Not to 190Mph in 12 seconds ... Top Speed 234Mph!
... Semtex with a Steering Wheel!
Speed Dragon
Moderador
Moderador
 
Mensagens: 5186
Registado: Sexta Mai 23, 2003 15:36
Localização: Lobão - Sª Mª da Feira > FEUP

Mensagempor [PT]CableGuy » Segunda Fev 28, 2005 9:33

The Server Side Includes Tutorial
Include Tag

The include tag provides for inserting the contents of a file into the HTML page at the location of the include token. The SSI+ include tag is fully recursive, each document inserted may itself contain further SSI+ insert tokens or any other SSI+ tokens.

virtual The virtual variable is used to specify a file path/name relative to the base directory of the HTTP server. The format is: 'virtual="'<filename>'"' where <filename>a file path/name relative to the base directory of the HTTP server.

file The file variable is used to specify a file path/name relative to the directory of the current document. The format is: 'file="'<filename>'"' where <filename>a file path/name relative to the directory of the current document. Example:

The following token on an HTML document inserts all text and SSI+ tokens from the file <html base directory>'SSI\INSERT.SHT'into the current document before transmission back to the client browser:
<!--#include virtual="SSI\INSERT.SHT" -->

Boa Sorte. :wink:
[PT]CableGuy
Gurus
Gurus
 
Mensagens: 1845
Registado: Domingo Mai 30, 2004 16:26

Mensagempor gimbras » Segunda Fev 28, 2005 10:26

usas o server side include, como disse o Pt CableGuy ou uma iframe

Código: Seleccionar todos
<iframe src="url"></iframe>
Avatar do Utilizador
gimbras
Membro Diamante
Membro Diamante
 
Mensagens: 1405
Registado: Quarta Fev 02, 2005 21:55

Mensagempor metralha761 » Segunda Fev 28, 2005 12:30

Usando o a tag pa cincluir javascript ficheiros externos tb deve dar.
Passei por uma loja (Worten) vi la um samsung 171s tao lindinho e bonitinho :) a sorrir pa mim :D e não resisti .....

www.metralha761.net

Malta toca a ir po irc.ptnet.org po canal #HCP
Avatar do Utilizador
metralha761
Membro Vitalício
Membro Vitalício
 
Mensagens: 2155
Registado: Sábado Jul 12, 2003 17:18
Localização: Patopolis

Mensagempor Speed Dragon » Segunda Fev 28, 2005 20:10

Podem-me dizer quais são as tags?

Não quero usar frames.

Não percebi muito bem como utilizar aquela tar do [PT]CableGuy.

Cumprimentos,
David Magalhães
... Then a japanese tuning company spend a 150.000£ on the engine ...
... so now develops a 1.000 Break Horse Power!
... Not to 60Mph, in 2.8 seconds, Not to 190Mph in 12 seconds ... Top Speed 234Mph!
... Semtex with a Steering Wheel!
Speed Dragon
Moderador
Moderador
 
Mensagens: 5186
Registado: Sexta Mai 23, 2003 15:36
Localização: Lobão - Sª Mª da Feira > FEUP

Mensagempor gimbras » Terça Mar 01, 2005 15:29

o q eu disse n eram bem bem bem frames eram mais iframes k é uma frame invisivel dentro do site q n se comporta como as frames normais, que costumam ter elevadores proprios e assim.

a iframes tmb podem ter elevadores próprios, mas à escolha do freguês, se quiseres digo-te um site via mp, e dps dizes-me onde estão as iframes, para ver se as consegues encontrar. As iframes até podemos escolher as dimensões e outras coisas.

o server side include é fácil

Código: Seleccionar todos
<!--#include file="outrapagina.html" -->


é só colocar essa cena no código, q o browser vai lá vai buscar o código da outrapagina.html

:D
Avatar do Utilizador
gimbras
Membro Diamante
Membro Diamante
 
Mensagens: 1405
Registado: Quarta Fev 02, 2005 21:55

Mensagempor Speed Dragon » Quarta Mar 02, 2005 1:19

Obrigado, acabei de ir pelos iframe ... já não uso HTML a muito tempo, gosto muito muito muito mais de PHP, mas infelismente a página vai ter que ser feita em HTML :(

Cumprimentos,
David Magalhães
... Then a japanese tuning company spend a 150.000£ on the engine ...
... so now develops a 1.000 Break Horse Power!
... Not to 60Mph, in 2.8 seconds, Not to 190Mph in 12 seconds ... Top Speed 234Mph!
... Semtex with a Steering Wheel!
Speed Dragon
Moderador
Moderador
 
Mensagens: 5186
Registado: Sexta Mai 23, 2003 15:36
Localização: Lobão - Sª Mª da Feira > FEUP

Mensagempor gimbras » Quarta Mar 02, 2005 11:47

ehehe, a minha ajuda deu frutos, andei a fazer pub pelos iframe k deu resultado
Avatar do Utilizador
gimbras
Membro Diamante
Membro Diamante
 
Mensagens: 1405
Registado: Quarta Fev 02, 2005 21:55


Voltar para Programação

Quem está ligado:

Utilizadores a ver este Fórum: Nenhum utilizador registado e 2 visitantes

cron