• 26-01-2010, 14:53:07
    #1
    merhaba arkadaşlar bana gunde 1 kez açılan hiç bir tarayıcıda engellenmeyen bir pop-up kodu lağzım yardımlarınız için simdiden tesekkurler.
  • 28-01-2010, 12:30:25
    #2
    yokmu kimsede pop up kodu :S
  • 28-01-2010, 17:14:45
    #3
    forumda aramayı denesen?
  • 30-01-2010, 18:13:36
    #4
    Konuyu Acmadan once aradım hic biri duzgun calısmıyor.
  • 30-01-2010, 18:53:47
    #5
    bu kod halen çalışmakta. üzerinde düzenleme yapıp kullanabilirsin ;

    <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=760,width=800');
    //              win = window.open(url, 'ljPu', 'height=680,width=790');
                    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;
            	// eğer  n=1; i 0 yaparsanız popup cookie yönetimine bağlanır ve 
    			// sadece 1 kez açılır. n=1; kaldığı sürece popup sürekli açılacaktır.
            	for (var n=1; 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('http://www.Site-Adresi.com');
            		setCookie('popundr', 1, 24*60*60*1000);
            	}
            }
    initPu();
    </script>