← Desenvolvimento

[Html] Abrir links dentro de iframe

Lida 2506 vezes

Offline

cenourinha 
Elite
Mensagens 4094 Gostos 21
Troféus totais: 34
Trófeus: (Ver todos)
Mobile User Apple User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4

Boas
Queria um script que abrisse os links dentro duma iframe.
Essa iframe teria 100% de largura sem borda e 80% de altura.
Em cima da iframe teria um espaço com texto e imagens, do genero o google image search.
Offline

blacksmith 
Membro
Mensagens 42 Gostos 0
Troféus totais: 21
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 4 Level 3 Level 2 Level 1 10 Posts First Post

Fiz isto agora meio à pressa. Julgo que seja o que pretendes:

Código: [Seleccione]

<html>

<head>
<meta http-equiv="Content-Language" content="pt">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Página 1</title>
<base target="frame1">
</head>

<body>

<p><a href="http://www.sapo.pt">SAPO</a> | <a href="http://www.clix.pt">CLIX</a> </p>
<p><iframe name="frame1" height="80%" width="100%">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe></p>

</body>

</html>
Offline

cenourinha 
Elite
Mensagens 4094 Gostos 21
Troféus totais: 34
Trófeus: (Ver todos)
Mobile User Apple User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4

Nah... a frame vai buscar o link pelo url... iframe.php?url=http://www.siteparaaparecernaiframe.com

Eu quero é ter um "header" com o logo e algum texto.
Offline

blacksmith 
Membro
Mensagens 42 Gostos 0
Troféus totais: 21
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 4 Level 3 Level 2 Level 1 10 Posts First Post

Então não percebi nada... sorry!
Offline

cenourinha 
Elite
Mensagens 4094 Gostos 21
Troféus totais: 34
Trófeus: (Ver todos)
Mobile User Apple User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4

webtuga.dynip.sapo.pt/iframe.html era algo como isto, agora só me falta a scroolbar.
Alguém me sabe dizer se dá para modificar a scroolbar dentro da iframe?