← Desenvolvimento

Criar um popup que desaparece quando clicado num anúncio.

Lida 4365 vezes

Offline

HawK 
Membro
Mensagens 1698 Gostos 0
Feedback +8

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

Como Criar um popup que desaparece quando clicado num anúncio?
O que quero fazer é disponibilizar o link de uma música, mas para ter o acesso ao link as pessoas tem que
clicar no banner de publicidade que eu colocar.
Offline

HawK 
Membro
Mensagens 1698 Gostos 0
Feedback +8

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

Bump !
Offline

Turtuga 
Membro
Mensagens 23 Gostos 0
Troféus totais: 16
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 3 Level 2 Level 1 10 Posts First Post Karma Seventh year Anniversary

Olá HawK

Eu estive aqui a fazer um script que utilizei uma div mas se o adaptares aquilo que necessitas penso que será isto que queres..

Código: [Seleccione]
<!--poplayer.inc.php-->
<script language="javascript" type="text/javascript">
<!--
(document.getElementById) ? dom = true : dom = false; //check ie or ff
function hideIt(layer) {
 if (dom) {document.getElementById(layer).style.visibility='hidden';} //ie
 if (document.layers) {document.layers[layer].visibility='hide';} } //ff
function showIt(layer) {
 if (dom) {document.getElementById(layer).style.visibility='visible';}
 if (document.layers) {document.layers[layer].visibility='show';} }
//-->
</script>
<a href='#' onClick="showIt('divteste');">aqui pode ser no load da pagina(clica)</button>
<div id="divteste" style="visibility:hidden;"><br /><br /><br /><br />
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td onClick="hideIt('divteste')">Link pubbbb(ao clicar fexa)</td>
</tr>
</table>
</div>

Espero ter ajudado.

Abraço
Offline

VpR 
Membro
Mensagens 202 Gostos 3
Feedback +1

Troféus totais: 32
Trófeus: (Ver todos)
Level 6 Avatar Linux User Mobile User Search Windows User Super Combination Combination Topic Starter Poll Voter

isso eh permitido no adsense?
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

isso eh permitido no adsense?
Não. É incentivo ao clique e é, obviamente, condenável.