• 02-05-2021, 01:05:04
    #1
    Elimde web sitemde bir yere tıklayınca popup açan (site1.com) javascript kodu var.

    Ben farklı her kullanıcı'ya belirleceğim sitelerin açılmasını istiyorum. Ya da zamanlamada olabilir 5 dk'da açılacak siteler değişecek şekilde.

    site2.com
    site3.com

    şeklinde 3 tane.

    İş hemen teslim olacaktır, fiyat teklifi veirn lütfen.
    <script type="text/javascript">
    var puShown = false;
    function doOpen(url)
    {
    if ( puShown == true )
    {
    return true;
    }
    win = window.open(url, 'ljPu', 'toolbar,status,resizable,scrollbars,menubar,location,height=auto,width=auto');
    // win = window.open(url, 'ljPu', 'height=auto,width=auto');
    if ( win )
    {
    win.blur();
    puShown = true;
    }
    return win;
    }
    function setCookie(name, value, time)
    {
    var expires = new Date();
    expires.setTime( expires.getTime() + time );
    document.cookie = name + '=' + value + '; expires=' + expires.toGMTString();
    }
    function getCookie(name) {
    var cookies = document.cookie.toString().split('; ');
    var cookie, c_name, c_value;
    for (var n=0; n<cookies.length; n++) {
    cookie = cookies[n].split('=');
    c_name = cookie[0];
    c_value = cookie[1];
    if ( c_name == name ) {
    return c_value;
    }
    }
    return null;
    }
    function initPu()
    {
    if ( document.attachEvent )
    {
    document.attachEvent( 'onclick', checkTarget );
    }
    else if ( document.addEventListener )
    {
    document.addEventListener( 'click', checkTarget, false );
    }
    }
    function checkTarget(e)
    {
    if ( !getCookie('popundr') ) {
    var e = e || window.event;
    var win = doOpen('https://www.site1.com/');
    setCookie('popundr', 1, 24*60*60*1000);
    }
    }
    initPu();
    </script>
  • 02-05-2021, 01:35:17
    #2
    <script type="text/javascript">
    function siteler() {};
    siteler = new siteler();
    reklam = 0;
    
    siteler[reklam++] = 'https://www.site1.com/';
    siteler[reklam++] = 'https://www.site2.com/';
    siteler[reklam++] = 'https://www.site3.com/';
    
    reklam = Math.floor(Math.random() * reklam);
    site_url = siteler[reklam];
    
    var puShown = false;
    function doOpen(url)
    {
    if ( puShown == true )
    {
    return true;
    }
    win = window.open(url, 'ljPu', 'toolbar,status,resizable,scrollbars,menubar,location,height=auto,width=auto');
    // win = window.open(url, 'ljPu', 'height=auto,width=auto');
    if ( win )
    {
    win.blur();
    puShown = true;
    }
    return win;
    }
    function setCookie(name, value, time)
    {
    var expires = new Date();
    expires.setTime( expires.getTime() + time );
    document.cookie = name + '=' + value + '; expires=' + expires.toGMTString();
    }
    function getCookie(name) {
    var cookies = document.cookie.toString().split('; ');
    var cookie, c_name, c_value;
    for (var n=0; n<cookies.length; n++) {
    cookie = cookies[n].split('=');
    c_name = cookie[0];
    c_value = cookie[1];
    if ( c_name == name ) {
    return c_value;
    }
    }
    return null;
    }
    function initPu()
    {
    if ( document.attachEvent )
    {
    document.attachEvent( 'onclick', checkTarget );
    }
    else if ( document.addEventListener )
    {
    document.addEventListener( 'click', checkTarget, false );
    }
    }
    function checkTarget(e)
    {
    if ( !getCookie('popundr') ) {
    var e = e || window.event;
    var win = doOpen(site_url);
    setCookie('popundr', 1, 24*60*60*1000);
    }
    }
    initPu();
    </script>
  • 02-05-2021, 04:25:35
    #3
    if3Lc adlı üyeden alıntı: mesajı görüntüle
    <script type="text/javascript">
    function siteler() {};
    siteler = new siteler();
    reklam = 0;
    
    siteler[reklam++] = 'https://www.site1.com/';
    siteler[reklam++] = 'https://www.site2.com/';
    siteler[reklam++] = 'https://www.site3.com/';
    
    reklam = Math.floor(Math.random() * reklam);
    site_url = siteler[reklam];
    
    var puShown = false;
    function doOpen(url)
    {
    if ( puShown == true )
    {
    return true;
    }
    win = window.open(url, 'ljPu', 'toolbar,status,resizable,scrollbars,menubar,location,height=auto,width=auto');
    // win = window.open(url, 'ljPu', 'height=auto,width=auto');
    if ( win )
    {
    win.blur();
    puShown = true;
    }
    return win;
    }
    function setCookie(name, value, time)
    {
    var expires = new Date();
    expires.setTime( expires.getTime() + time );
    document.cookie = name + '=' + value + '; expires=' + expires.toGMTString();
    }
    function getCookie(name) {
    var cookies = document.cookie.toString().split('; ');
    var cookie, c_name, c_value;
    for (var n=0; n<cookies.length; n++) {
    cookie = cookies[n].split('=');
    c_name = cookie[0];
    c_value = cookie[1];
    if ( c_name == name ) {
    return c_value;
    }
    }
    return null;
    }
    function initPu()
    {
    if ( document.attachEvent )
    {
    document.attachEvent( 'onclick', checkTarget );
    }
    else if ( document.addEventListener )
    {
    document.addEventListener( 'click', checkTarget, false );
    }
    }
    function checkTarget(e)
    {
    if ( !getCookie('popundr') ) {
    var e = e || window.event;
    var win = doOpen(site_url);
    setCookie('popundr', 1, 24*60*60*1000);
    }
    }
    initPu();
    </script>
    Hocam Allah razı olsun, deneyeceğim çok sağolun, hayırlı sabahlar.