← Desenvolvimento

ajuda trabalho

Lida 1835 vezes

Offline

happh1 
Membro
Mensagens 4 Gostos 0
Troféus totais: 18
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 3 Level 2 Level 1 First Post Karma Nineth year Anniversary

olá a todos eu tenho uma pequena duvida talvez noob , como se faz para quando se entra num site abrir outro de seguida
como se fosse publicidade ? obrigado e espero que respondam :)
Offline

Thomato 
Membro
Mensagens 4125 Gostos 3
Feedback +2

Troféus totais: 28
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2

Mas na mesma janela ou noutra janela?
Offline

happh1 
Membro
Mensagens 4 Gostos 0
Troféus totais: 18
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 3 Level 2 Level 1 First Post Karma Nineth year Anniversary

tipo ficas no site mas abre outra janela :)
Offline

Júnio Branco 
Membro
Mensagens 563 Gostos 0
Feedback +2

Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Colocas o seguinte código na página "index" do teu site ;).
Código: [Seleccione]
<META http-equiv="refresh" content="3;URL=http://oteusite.com" target="_blank">


Offline

happh1 
Membro
Mensagens 4 Gostos 0
Troféus totais: 18
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 3 Level 2 Level 1 First Post Karma Nineth year Anniversary

ok obrigado pelo reply :) fiquem bem pessoal
Offline

Thomato 
Membro
Mensagens 4125 Gostos 3
Feedback +2

Troféus totais: 28
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2

DarkWolf, antecipaste-te..

É isso mesmo :D
Offline

Pedro Lopes 
Beta tester
Mensagens 3568 Gostos 18
Feedback +6

Troféus totais: 32
Trófeus: (Ver todos)
Level 6 Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3

LOL
O que ele quer é pop-ups... xD

Para isso é javascript...

Colocas isto entre <head> e </head>
Código: [Seleccione]
<script language="javascript">
<!-- begin

function popup(Site)
{
window.open(Site,'PopupName','toolbar=no,statusbar=no,
location=no,scrollbars=yes,resizable=yes,width=275,height=200')
}

// end -->
</script>

E isto dentro da tag body:
onLoad="popup('link/para/o/popup.html'')"
Tipo:
<body onLoad="popup('link/para/o/popup.html')">

Mudas o link para a pagina que queres que apareça no pop-up e prontos...