Popunder Unblockable y and Popup script

  • Autor Autor ib0y34
  • Fecha de inicio Fecha de inicio
I

ib0y34

Alfa
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Esto es algo que nunca va a mostrar al usuario la barra amarilla fea en la parte superior de la pantalla que confirma que hay un popunder en esta página. Este script es para Popunders y ventanas emergentes, que se muestra cuando el usuario hace clic en la página web. por defecto el popunder se muestra después de cada 24 horas para cada visitante.


HTML:
var stagedPopFrequency = "1 days";
var stagedCookieName = "__name";
 
if (!document.currentStage)
  document.currentStage = 0;
document.currentStage++;
 
if (document.currentStage == 1) {
  function stagedGetCookie(Name) {
    var search = Name + "=";
    var returnvalue = "";
    if (document.cookie.length > 0) {
      offset = document.cookie.indexOf(search);
      if (offset != -1) { // if cookie exists
        offset += search.length;
        // set index of beginning of value
        end = document.cookie.indexOf(";", offset);
        // set index of end of cookie value
        if (end == -1)
          end = document.cookie.length;
        returnvalue = unescape(document.cookie.substring(offset, end));
      }
    }
    return returnvalue;
  }
 
  function stagedSetCookie(Name, Value, Expire) {
    if (Expire != null) {
      var expireDate = new Date();
      expireDate.setDate(expireDate.getDate() + parseInt(Expire));
      document.cookie = Name+"="+Value+";path=/;expires=" + expireDate.toGMTString();
    } else {
      document.cookie = Name+"="+Value+";path=/";
    }
  }
 
  function stagedResetCookie(Name) {
    var expireDate = new Date();
    expireDate.setDate(expireDate.getDate() - 10);
    document.cookie = Name+"=;path=/;expires=" + expireDate.toGMTString();
  }
 
  function stagedPopUnder() {
    if (stagedGetCookie(stagedCookieName) == '') {
      var thisStage = 1;
      var stageFunc = eval('window.popUnderStage'+thisStage);
      if (stageFunc != undefined) {
        stageFunc();
        stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
      }
    } else {
      var thisStage = parseInt(stagedGetCookie(stagedCookieName));
      var stageFunc = eval('window.popUnderStage'+thisStage);
      if (stageFunc != undefined) {
        stageFunc();
        stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
      }
    }
  }
 
  function stagedAttachBody() {
    if (document.body) {
      if (document.all) {
        document.body.attachEvent('onclick', stagedPopUnder);
      } else {
        document.body.addEventListener('click', stagedPopUnder, false);
      }
    } else {
      setTimeout('stagedAttachBody()', 200);
    }
  } stagedAttachBody();
}
 
if( parseInt(navigator.appVersion) > 3 )
{
   winWidth = screen.availWidth;
   winHeight = screen.availHeight;
}
else
{
   winWidth = "1024";
   winHeight = "768";
}
 
var stagedTmpFunc = function() {
  var pu = window.open("http://forobeta.com/", "_blank", "width=" + winWidth + ",height=" + winHeight + ",scrollbars=1,resizable=1,menubar=1");
  pu.blur();
  window.focus();
   
   
}
eval('window.popUnderStage'+document.currentStage+' = stagedTmpFunc;');
stagedTmpFunc = null;

En primer lugar crear una página en el directorio principal de su sitio y copiar y pegar este script en ella después de cambiar la dirección URL que desea abrir como popunder y el nombre popunder.js
A continuación, poner esto en la cabecera de su sitio

HTML:
<script type="text/javascript" src="http://www.tupagina.com/popunder.js"></script>
 
[MENTION=153133]ib0y34[/MENTION] es posible hacer que salte con el adblock activado?

Por otro lado en 1 days ahi tambien funciona "minute" y "seconds" ?

Es posible agregar mas de una url? que salte una detrás de otra segun se pulsa?

Un saludo,
 
muchisimas gracias. se podrian agregar ofertas de mobidea por ejemplo con este javascript sin ser penalizado por tal empresa de CPA?
 

Temas similares

50gratis
Respuestas
1
Visitas
132
Jxit3
Jxit3
mas3k
Respuestas
5
Visitas
376
Dieguit0sk8
D
applemacq
Respuestas
3
Visitas
362
applemacq
applemacq
50gratis
Respuestas
2
Visitas
269
iidps
I
Atrás
Arriba