Markim Markim  • 27.09.13 11:50

[Pedido] Popup facebook automatico com timer Empty [Pedido] Popup facebook automatico com timer 27.09.13 11:50

Alguem tem esse popup para me passar? eu achei um no google, mas o script está fora do ar.
Por favor estou precisando muito desse popup.


Obs: é para site em php

[Pedido] Popup facebook automatico com timer MUZkObp

νσℓ¢σм νσℓ¢σм  • 27.09.13 17:25

[Pedido] Popup facebook automatico com timer Empty Re: [Pedido] Popup facebook automatico com timer 27.09.13 17:25

Código:
<!-- jquery popup facebook like box com timer -->
<style type='text/css'>
#popup{
position: fixed;
top:100px;
boder::9999;
display:none;
padding:0px;
right:600px;
border:10px solid rgba(82, 82, 82, 0.7);
-webkit-background-clip: padding-box; /* for Safari */
background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
-webkit-border-radius:8px 8px 8px 8px;
-moz-border-radius:8px 8px 8px 8px;
border-radius:8px 8px 8px 8px;
width:400px;
height:360px;
overflow:hidden;
}
#popup span{
font-size:20px !important;
font-weight:bold !important;
}
#popup h1{
background:#6d84b4 url(http://4.bp.blogspot.com/-rNUTIpDQ21s/T0NqE_vv6GI/AAAAAAAACps/GSoWE2n9Oy8/s1600/%255Bwww.gj37765.blogspot.com%255Dh1.png) 98% no-repeat;
border:1px solid #3b5998 !important;
color:#FFFFFF !important;
font-size:20px !important;
font-weight:700 !important;
padding:5px !important;
margin:0 !important;
font-family:'"lucida grande",tahoma,verdana,arial,sans-serif !important;
overflow:hidden !important;
}
.htmlarea{
font-size:12px !important;
font-weight:normal !important;
height:265px !important;
padding:1px !important;
background:#fff !important;
border-bottom:2px solid #ddd;
overflow:hidden !important;
}
#mdfooter{
text-align:left;
background:#F2F2F2 !important;
height:56px !important;
padding:10px 10px 10px 10px !important;
overflow:hidden !important;
}
#mdclose{
float:right;
background-color:#eee !important;
border:1px solid #ccc !important;
color:#111 !important;
font-weight:bold !important;
padding:5px 8px 5px 8px !important;
text-decoration:none !important;
display:inline-block !important;
font-family:'"lucida grande",tahoma,verdana,arial,sans-serif !important;
outline:none !important;
position:relative !important;
font-size:18px !important;
margin:1px !important;
}
#mdclose:active{
top:1px;
left:1px;
}
</style>
<script type='text/javascript'>
jQuery(document).ready(function() {
function _ppopup()  {
var sec = 10
var timer = setInterval(function() {
  $("#mdfooter span").text(sec--);
  if (sec == 0) {
      $("#popup").fadeOut("slow");
      clearInterval(timer);
  }
},1000);
  var mdwh = jQuery(window).height();
  var mdpph = jQuery("#popup").height();
  var mdfromTop = jQuery(window).scrollTop()+50;
 jQuery("#popup").css({"top":mdfromTop});}
jQuery(window).fadeIn(_ppopup).resize(_ppopup)
 //alert(jQuery.cookie('sreqshown'));
 //var mdww = jQuery(window).width();
 //var mdppw = jQuery("#popup").width();
 //var mdleftm = (mdww-mdppw)/2;
  var mdleftm = 500;
 //var mdwh = jQuery(window).height();
 //var mdpph = jQuery("#popup").height();
 //var mdfromTop = (jQuery(window).scrollTop()+mdwh-mdpph) / 2;
 jQuery("#popup").animate({opacity: "1", left: "0" , left:  mdleftm}, 0).show();
    jQuery("#mdclose").click(function() {
jQuery("#popup").animate({opacity: "0", left: "-5000000"}, 1000).show();});});
</script>
<div id="popup">
<h1>Curta nossa Fanpage</h1>
<div class="htmlarea">
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FSUAPAGINAAQUI&amp;width=400&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23fff&amp;stream=false&amp;header=false&amp;height=250" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:250px;" allowtransparency="true"></iframe>
</div>
<div id="mdfooter">
Please wait..<span>10</span> Seconds
<a href="#" id="mdclose" onclick="return false;">Fechar</a>
</div>
</div>
<!-- Fim popup -->

* Em var sec = 10, representa o tempo em segundos que a popup fica aberta, mude caso desejar.
* Em Please wait..<span>10</span> Seconds, representa a mensagem de tempo que aparece, configure de acordo com o item anterior.
* Em Curta nossa Fanpage, representa o título da popup, altere caso desejar.
* Em SUAPAGINAAQUI, troque pelo nome de sua página

OBS: Caso não esteja funcionando a popup em seu site/blog, pode ser a falta um pequeno erro que se resolve facilmente:

>> Vá em seu site e edite a index. Pesquise por </head>.
>> Logo ACIMA da tag pesquisa cole o seguinte código e depois clique em "Salvar".
Código:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/>

Markim Markim  • 27.09.13 18:11

[Pedido] Popup facebook automatico com timer Empty Re: [Pedido] Popup facebook automatico com timer 27.09.13 18:11

νσℓ¢σм escreveu:
Código:
<!-- jquery popup facebook like box com timer -->
<style type='text/css'>
#popup{
position: fixed;
top:100px;
boder::9999;
display:none;
padding:0px;
right:600px;
border:10px solid rgba(82, 82, 82, 0.7);
-webkit-background-clip: padding-box; /* for Safari */
background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
-webkit-border-radius:8px 8px 8px 8px;
-moz-border-radius:8px 8px 8px 8px;
border-radius:8px 8px 8px 8px;
width:400px;
height:360px;
overflow:hidden;
}
#popup span{
font-size:20px !important;
font-weight:bold !important;
}
#popup h1{
background:#6d84b4 url(http://4.bp.blogspot.com/-rNUTIpDQ21s/T0NqE_vv6GI/AAAAAAAACps/GSoWE2n9Oy8/s1600/%255Bwww.gj37765.blogspot.com%255Dh1.png) 98% no-repeat;
border:1px solid #3b5998 !important;
color:#FFFFFF !important;
font-size:20px !important;
font-weight:700 !important;
padding:5px !important;
margin:0 !important;
font-family:'"lucida grande",tahoma,verdana,arial,sans-serif !important;
overflow:hidden !important;
}
.htmlarea{
font-size:12px !important;
font-weight:normal !important;
height:265px !important;
padding:1px !important;
background:#fff !important;
border-bottom:2px solid #ddd;
overflow:hidden !important;
}
#mdfooter{
text-align:left;
background:#F2F2F2 !important;
height:56px !important;
padding:10px 10px 10px 10px !important;
overflow:hidden !important;
}
#mdclose{
float:right;
background-color:#eee !important;
border:1px solid #ccc !important;
color:#111 !important;
font-weight:bold !important;
padding:5px 8px 5px 8px !important;
text-decoration:none !important;
display:inline-block !important;
font-family:'"lucida grande",tahoma,verdana,arial,sans-serif !important;
outline:none !important;
position:relative !important;
font-size:18px !important;
margin:1px !important;
}
#mdclose:active{
top:1px;
left:1px;
}
</style>
<script type='text/javascript'>
jQuery(document).ready(function() {
function _ppopup()  {
var sec = 10
var timer = setInterval(function() {
   $("#mdfooter span").text(sec--);
   if (sec == 0) {
      $("#popup").fadeOut("slow");
      clearInterval(timer);
   }
},1000);
  var mdwh = jQuery(window).height();
  var mdpph = jQuery("#popup").height();
  var mdfromTop = jQuery(window).scrollTop()+50;
 jQuery("#popup").css({"top":mdfromTop});}
jQuery(window).fadeIn(_ppopup).resize(_ppopup)
 //alert(jQuery.cookie('sreqshown'));
 //var mdww = jQuery(window).width();
 //var mdppw = jQuery("#popup").width();
 //var mdleftm = (mdww-mdppw)/2;
   var mdleftm = 500;
 //var mdwh = jQuery(window).height();
 //var mdpph = jQuery("#popup").height();
 //var mdfromTop = (jQuery(window).scrollTop()+mdwh-mdpph) / 2;
 jQuery("#popup").animate({opacity: "1", left: "0" , left:  mdleftm}, 0).show();
     jQuery("#mdclose").click(function() {
jQuery("#popup").animate({opacity: "0", left: "-5000000"}, 1000).show();});});
</script>
<div id="popup">
<h1>Curta nossa Fanpage</h1>
<div class="htmlarea">
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FSUAPAGINAAQUI&width=400&colorscheme=light&show_faces=true&border_color=%23fff&stream=false&header=false&height=250" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:250px;" allowtransparency="true"></iframe>
</div>
<div id="mdfooter">
Please wait..<span>10</span> Seconds
<a href="#" id="mdclose" onclick="return false;">Fechar</a>
</div>
</div>
<!-- Fim popup -->
* Em var sec = 10, representa o tempo em segundos que a popup fica aberta, mude caso desejar.
* Em Please wait..<span>10</span> Seconds, representa a mensagem de tempo que aparece, configure de acordo com o item anterior.
* Em Curta nossa Fanpage, representa o título da popup, altere caso desejar.
* Em SUAPAGINAAQUI, troque pelo nome de sua página

OBS: Caso não esteja funcionando a popup em seu site/blog, pode ser a falta um pequeno erro que se resolve facilmente:

>> Vá em seu site e edite a index. Pesquise por </head>.
>> Logo ACIMA da tag pesquisa cole o seguinte código e depois clique em "Salvar".
Código:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/>
Os segundos não contam (fica parado em 10 seg), queria que aparece-se a opção fechar só depois que acaba-se de contar os segundos. 

Depois de colocar <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/> o popup parou de funcionar.

νσℓ¢σм νσℓ¢σм  • 28.09.13 14:01

[Pedido] Popup facebook automatico com timer Empty Re: [Pedido] Popup facebook automatico com timer 28.09.13 14:01

Fiz um novo este deu certo aqui como tinha dado o outro!

Lembre-se Ponha entre a tag <body> </body>

Código:
<body>
<!-- Facebook POPUP LikeBox With Timer Code Start -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script>
<style type='text/css'>
#exepopup{background-color:#fff;position: fixed;top:50%;boder::9999;display:none;padding:0px;left:50%;border:10px solid rgba(82, 82, 82, 0.7);-webkit-background-clip: padding-box; /* for Safari */background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */-webkit-border-radius:8px 8px 8px 8px;-moz-border-radius:8px 8px 8px 8px;border-radius:8px 8px 8px 8px;width:400px;height:360px;margin-left:-200px;margin-top:0px;overflow:hidden;}#exepopup span{font-size:20px !important;font-weight:bold !important;}#exepopup h1{background:#6d84b4 url(http://4.bp.blogspot.com/-wbOyGFuANTQ/UVF1F4ouC4I/AAAAAAAABiA/RX4jNlICbjM/s1600/aktechz-fb-lock.png) 98% no-repeat;border:1px solid #3b5998 !important;color:#FFFFFF !important;font-size:20px !important;font-weight:700 !important;padding:5px !important;margin:0 !important;font-family:'"lucida grande",tahoma,verdana,arial,sans-serif !important;overflow:hidden !important;}.exepopupdata{font-size:12px !important;font-weight:normal !important;height:265px !important;padding:1px !important;background:#fff !important;border-bottom:2px solid #ddd;overflow:hidden !important;}#exepopupfooter{text-align:left;background:#F2F2F2 !important;height:56px !important;padding:10px 10px 10px 10px !important;overflow:hidden !important;}#exepopupclose{float:right;background-color:#eee !important;border:1px solid #ccc !important;color:#111 !important;font-weight:bold !important;padding:5px 8px 5px 8px !important;text-decoration:none !important;display:inline-block !important;font-family:'"lucida grande",tahoma,verdana,arial,sans-serif !important;outline:none !important;position:relative !important;font-size:18px !important;margin:1px !important;}#exepopupclose:active{top:1px;left:1px;}</style>
<script type='text/javascript'>
jQuery(document).ready(function() {
function exepopupfunc() {
var sec = 10
var timer = setInterval(function() {
$("#exepopupfooter span").text(sec--);
if (sec == 0) {
$("#exepopup").fadeOut("slow");
clearInterval(timer);
}
},1000);
var exepopupwindow = jQuery(window).height();
var exepopupdiv = jQuery("#exepopup").height();
var exepopuptop = jQuery(window).scrollTop()+50;
jQuery("#exepopup").css({"top":exepopuptop});}
jQuery(window).fadeIn(exepopupfunc).resize(exepopupfunc)
//alert(jQuery.cookie('sreqshown'));
//var exepopupww = jQuery(window).width();
//var exepopupwww = jQuery("#exepopup").width();
//var exepopupleft = (exepopupww-exepopupwww)/2;
var exepopupleft = 500;
//var exepopupwindow = jQuery(window).height();
//var exepopupdiv = jQuery("#exepopup").height();
//var exepopuptop = (jQuery(window).scrollTop()+exepopupwindow-exepopupdiv) / 2;
jQuery("#exepopup").animate({opacity: "1", left: "0" , left: exepopupleft}, 0).show();
jQuery("#exepopupclose").click(function() {
jQuery("#exepopup").animate({opacity: "0", left: "-5000000"}, 1000).show();});});
</script>
<div id="exepopup">
<h1>FaceBook Timer Popup by Volcom</h1>
<div class="exepopupdata"><iframe src="http://facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FPowerPixelForum&amp;width=400&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23fff&amp;stream=false&amp;header=false&amp;height=250" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:250px;" allowtransparency="true"></iframe></div>
<div id="exepopupfooter">Por favor espere <span> 10</span> Segundos...!!!<a href="#" id="exepopupclose" onclick="return false;"></a></div></div>
<!-- Facebook POPUP LikeBox With Timer Code End -->

</body>
Já deve saber como mudar pois é quase igual ao outro!
Se quiser editar código edite!
Alguma duvida diga
Como vai ficar:
[Pedido] Popup facebook automatico com timer TdmjMVg
https://i.imgur.com/tdmjMVg.png

Markim Markim  • 28.09.13 15:10

[Pedido] Popup facebook automatico com timer Empty Re: [Pedido] Popup facebook automatico com timer 28.09.13 15:10

Era exatamente isso que tava querendo, mas queria que quando o usuário curti-se a página o popup fecha-se automaticamente, e se consegui colocar um sitema de cookies também, o popup aparecer para cada usuario apenas algumas vezes no dia.

Conteúdo patrocinado  • 

[Pedido] Popup facebook automatico com timer Empty Re: [Pedido] Popup facebook automatico com timer

Permissões neste sub-fórum
Não podes responder a tópicos

BH Servers

Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.