← Desenvolvimento

Iframe ou lá o que é

Lida 8360 vezes

Offline

morpheus 
Membro
Mensagens 1199 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

working here! :wink:
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

Tipo agora dá para por uma animação por cima do iframe?
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

O meu site vandalizado!   :shock:  :lol:

Dá:

Basta colocares essa animação a seguir a:

Citar
Parceiros webtuga - todos os direitos reservados  www.webtuga.com


e antes da iframe...
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

Não fica assim se puser:

http://webtuga.com/iframe.php?url=www.sapo.pt

o codigo que tá lá é este:

Código: [Seleccione]
<body background="http://www.massive.hlfusion.net/portal/themes/zoneCopper/style/images/background.gif">
<p align="center"><b><font face="Verdana" size="1"><font color="#00FF00">Parceiros webtuga - todos os
direitos reservados </font> <a href="http://www.webtuga.com">
<font color="#00FF00">www.webtuga.com</font></a></font></b></p>
<p align="center"><p>
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="758" height="472">
<param name="movie" value="http://www.netdisaster.com/fla/loader.swf?mode=bomb&destruction=&acces=http://www.netdisaster.com/fla/&control=">
<param name="quality" value="High">
<embed src="http://www.netdisaster.com/fla/loader.swf?mode=bomb&destruction=&acces=http://www.netdisaster.com/fla/&control=" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="758" height="472"></object>
</p>
<iframe src="http://<?extract($_POST);echo"$url";?>" width="874" height="485"?>">www.webtuga.com</iframe>
</p>
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Não será por estares a tentar correr um flash que não está no teu server?

Já experimentaste fazer o mesmo com um swf no teu servidor?
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

http://webtuga.com/frame.php?url=www.sapo.pt

Tentei agora e não dá.

Codigo:

Código: [Seleccione]
<body background="http://www.massive.hlfusion.net/portal/themes/zoneCopper/style/images/background.gif">
<p align="center"><b><font face="Verdana" size="1"><font color="#00FF00">Parceiros webtuga - todos os
direitos reservados </font> <a href="http://www.webtuga.com">
<font color="#00FF00">www.webtuga.com</font></a></font></b></p>
<p align="center"><p>
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="758" height="472">
<param name="movie" value="http://www.webtuga.com/themes/iCGstation/logo.swf">
<param name="quality" value="High">
<embed src="http://www.webtuga.com/themes/iCGstation/logo.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="758" height="472"></object>
</p>
<iframe src="http://<?extract($_POST);echo"$url";?>" width="874" height="485"?>">www.webtuga.com</iframe>
</p>
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Código: [Seleccione]
<iframe src="http://<?extract($_POST);echo"$url";?>" width="874" height="485"?>">www.webtuga.com</iframe>
</p>


Tenta colocar assim

Código: [Seleccione]
</p>
<iframe src="http://<?extract($_POST);echo"$url";?>" width="874" height="485"?>">www.webtuga.com</iframe>


Aliás está a abrir dois parágrafos porquê?

Coloca uma tag <br> antes da iframe...
Offline

morpheus 
Membro
Mensagens 1199 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

não sou o único a dar dicas de codigo! ;)
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

Esqueçam, eu tava aqui com umas ideias mas isso ia dar muito trabalho
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Citação de: "morpheus"
não sou o único a dar dicas de codigo! ;)


 :lol: quem me dera chegar aos teus pés :P
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Citação de: "cenourinha"
Esqueçam, eu tava aqui com umas ideias mas isso ia dar muito trabalho


Se calhar não... diz lá o que querias.
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

Citação de: "fpware"
Citação de: "cenourinha"
Esqueçam, eu tava aqui com umas ideias mas isso ia dar muito trabalho


Se calhar não... diz lá o que querias.


era a tal coisa que tu dizias

http://www.netdisaster.com/go.php?mode=bomb&url=www.webtuga.com
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Está porreiro!  :lol:

O código que eles estão a usar é:

Código: [Seleccione]
<html><head><title>Netdisaster</title><SCRIPT language="JavaScript">test_top = top.location + "" ; if ( top.location == document.location || typeof test_top == "undefined" ) { top.location.href = "http://www.netdisaster.com/go.php?mode=bomb&lang=en&url=http://www.webtuga.com/" ; }</SCRIPT></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><div id="myAnim" style="position:absolute; left:0px; top:0px; width:100%; height:100%; z-index:100">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100%" height="100%">
<param name="movie" value="http://www.netdisaster.com/fla/loader.swf?mode=bomb&destruction=&acces=http://www.netdisaster.com/fla/&control=">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<param name="scale" value="noborder">
<param name="menu" value="false">
<embed src="http://www.netdisaster.com/fla/loader.swf?mode=bomb&destruction=&acces=http://www.netdisaster.com/fla/&control=" quality=high wmode=transparent pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="100%" scale="noborder" menu="false">
</embed></object></div><iframe name="site" width="100%" height="100%" frameborder="no" scrolling="no" noresize src="http://www.webtuga.com/"></iframe><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

Desculpem ressuscitar isto, mas a variavel $url já está defenida em php?
Offline

GTO_KAI 
Membro
Mensagens 532 Gostos 13
Troféus totais: 31
Trófeus: (Ver todos)
Level 6 Windows User Super Combination Combination Topic Starter Poll Voter Poll Starter Level 5 Level 4 Level 3

Citação de: "cenourinha"
Alguem me sabe dizer como é que eu faço por eemplo esta cena:

http://www.freesearchware.net/mobile/pt/teste.php

o que eu queria era por os sites a abrir com uma iframe, tipo este: webforum.pt.to, mas queria que ele abri-se assim:

www.webtuga.com/open?url=http://www.site.com

acho que é assim, não fui explicito, mas penso qe pensando chegam lá

bem para fazer desse jeito é esse código aqui:

na pagina index.php:

Código: [Seleccione]


<?php
if &#40;isset&#40;$page&#41;&#41; &#123; //verifica se o ?page= existe
$incPage $page.".php"//identifica a pagina, se o ?page= existir
if &#40;file_exists&#40;$incPage&#41;&#41; &#123; //se o arquivo existir...
include&#40;$incPage&#41;; //inclui a página...
&#125; else &#123; // se não existir...
include&#40;"principal.php"&#41;; //inclui "principal.php", substitua isso pela sua página principal....
&#125;
&#125; else &#123; // se a ?page= não existir...
include&#40;"principal.php"&#41;; //inclui "principal.php", substitua isso pela sua página principal....
&#125;
?>

ai para usar nesse caso o ?Page= é só usar esse sistema:
Código: [Seleccione]
<a href="index.php?page=qualquer_coisa">Qualquer Coisa</a>

 :P espero ter ajudado um pouco... :cry: