• 18-10-2006, 10:42:03
    #1
    Pop-up kodları ile ilgili onlarca konu açıldığı için burada pop-up kodlarının çoğunu ekledim.

    Normal Popup Kodu (Pop-up Önleyicilerine Takılır - HTML)
    Alıntı
    <!-- Popup-->
    <script>Pop=window.open("http://www.google.com.tr"); self.focus();</script>
    <!-- Popup Sonu-->
    </head> Tagından önce kullanılması gerekir.
    Pop-up Önleyicilerine Takılmayan Pop-up Kodu (HTML)
    <script LANGUAGE="JavaScript">
    <!-- 
    var expDays = 1;
    var page = "http://www.google.com.tr";
    var windowprops = "width=600,height=500,location=no,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes";
    function GetCookie (name) {  
    var arg = name + "=";  
    var alen = arg.length;  
    var clen = document.cookie.length;  
    var i = 0;  
    while (i < clen) {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    return getCookieVal (j);    
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0) break;   
    }  
    return null;
    }
    function SetCookie (name, value) {  
    var argv = SetCookie.arguments;  
    var argc = SetCookie.arguments.length;  
    var expires = (argc > 2) ? argv[2] : null;  
    var path = (argc > 3) ? argv[3] : null;  
    var domain = (argc > 4) ? argv[4] : null;  
    var secure = (argc > 5) ? argv[5] : false;  
    document.cookie = name + "=" + escape (value) + 
    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
    ((path == null) ? "" : ("; path=" + path)) +  
    ((domain == null) ? "" : ("; domain=" + domain)) +    
    ((secure == true) ? "; secure" : "");
    }
    function DeleteCookie (name) {  
    var exp = new Date();  
    exp.setTime (exp.getTime() - 1);  
    var cval = GetCookie (name);  
    document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
    }
    var exp = new Date(); 
    exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
    function amt(){
    var count = GetCookie('count')
    if(count == null) {
    SetCookie('count','1')
    return 1
    }
    else {
    var newcount = parseInt(count) + 1;
    DeleteCookie('count')
    SetCookie('count',newcount,exp)
    return count
       }
    }
    function getCookieVal(offset) {
    var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1)
    endstr = document.cookie.length;
    return unescape(document.cookie.substring(offset, endstr));
    }
    function checkCount() {
    var count = GetCookie('count');
    if (count == null) {
    count=1;
    SetCookie('count', count, exp);
    window.open(page, "", windowprops);
    }
    else {
    count++;
    SetCookie('count', count, exp);
       }
    }
    checkCount();
    //  End -->
    </script>
    // var page = "http://www.google.com.tr"; => Pop-up açılacak site adresi
    // var windowprops = "width=600,height=500,location=no,toolbar=yes,menu bar=yes,scrollbars=yes,resizable=yes"; // Buradan açılacak pop-upun yükseklik, genişlik, scroolbar, toolbar gibi ayarlarını değiştirebilirsiniz.
    </head> Tagından önce kullanılması gerekir.
    Çıkış Pop-Up Kodu (HTML)
    Alıntı
    <BODY onunload="window.open('http://www.google.com.tr')">
    Bu kod ile bu kodun olduğu sayfadan çıkıldığı an belirtilen adres açılır.
    <body> zaten varsa içerisine onunload="window.open('http://www.google.com.tr')" bunu ekleyerekte kullanabilirsiniz.
    Çıkış Pop-up Kodu (Pop-up önleyicilerine takılmaz - HTML)
    Alıntı
    <body onbeforeunload=stexit();>
    <script>
    var browser = navigator.userAgent;
    function stexit() {
    var browser = navigator.userAgent;
    if (browser.indexOf('SV1') != -1) {
    x.DOM.Script.execScript(shellscript.toString());
    x.DOM.Script.shellscript();
    } else {
    mywin = open("http://www.seninsiten.com/popup.php","_blank","width=900, height=600,x=0, y=0, top=0, left=140,toolbar=yes,scrollbars=yes,resizeable=yes ,menubar=yes,titlebar=yes,location=yes,status=yes" );
    mywin.focus();
    }
    }
    function shellscript() {
    mywin = open("http://www.seninsiten.com/popup.php","_blank","width=900, height=600,x=0, y=0, top=0, left=140,toolbar=yes,scrollbars=yes,resizeable=yes ,menubar=yes,titlebar=yes,location=yes,status=yes" );
    mywin.focus();
    }
    if (window.clientInformation.appName=='Microsoft Internet Explorer') {
    if (browser.indexOf('MSIE 6.') != -1) {
    document.write('<object id=x classid= clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A width=1 height=1><PARAM NAME=ActivateApplets VALUE=1><PARAM NAME=ActivateAciveXControls VALUE=1></object>');
    }
    }
    </script>
    </body>
    <body> ile </body> arasında kullanılır.
    Çıkış Pop-up Kodu (Pop-up önleyicilere takılmaz - PHP - 1 Günlük Cookieli)
    <?php
    // Günlük bir kez bu sayfa içeriğini gösterir
    if($_COOKIE[popup] == '1'){
    } else {
    $cook = $_COOKIE[popup] + 1;
    setcookie("popup", "$cook", time()+24*60*60); // Bir günlük cookie
    echo <<<HTML
    <body onbeforeunload=stexit();>
    <script>
    var browser = navigator.userAgent;
    function stexit() {
    var browser = navigator.userAgent;
    if (browser.indexOf('SV1') != -1) {
    x.DOM.Script.execScript(shellscript.toString());
    x.DOM.Script.shellscript();
    } else {
    mywin = open("http://www.seninsiten.com/popup.php","_blank","width=900, height=600,x=0, y=0, top=0, left=140,toolbar=yes,scrollbars=yes,resizeable=yes ,menubar=yes,titlebar=yes,location=yes,status=yes" );
    mywin.focus();
    }
    }
    function shellscript() {
    mywin = open("http://www.seninsiten.com/popup.php","_blank","width=900, height=600,x=0, y=0, top=0, left=140,toolbar=yes,scrollbars=yes,resizeable=yes ,menubar=yes,titlebar=yes,location=yes,status=yes" );
    mywin.focus();
    }
    if (window.clientInformation.appName=='Microsoft Internet Explorer') {
    if (browser.indexOf('MSIE 6.') != -1) {
    document.write('<object id=x classid= clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A width=1 height=1><PARAM NAME=ActivateApplets VALUE=1><PARAM NAME=ActivateAciveXControls VALUE=1></object>');
    }
    }
    </script>
    </body>
    HTML;
    }
    ?>
    Cookie destekli bilgisayarlarda günde bir kez açılır. Belirtilen süreyi (time()+24*60*60) değiştirebilirsiniz.
    Pop-up Kodu (Günlük bir kez açılır - PHP - Pop-up önleyicilerine takılmaz.)
    <?php
    // Günlük bir kez bu sayfa içeriğini gösterir
    if($_COOKIE[popup] == '1'){
    } else {
    $cook = $_COOKIE[popup] + 1;
    setcookie("popup", "$cook", time()+24*60*60); // Bir günlük cookie
    echo <<<HTML
    <script LANGUAGE="JavaScript">
    <!-- 
    var expDays = 1;
    var page = "http://www.google.com.tr";
    var windowprops = "width=600,height=500,location=no,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes";
    function GetCookie (name) {  
    var arg = name + "=";  
    var alen = arg.length;  
    var clen = document.cookie.length;  
    var i = 0;  
    while (i < clen) {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
    return getCookieVal (j);    
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0) break;   
    }  
    return null;
    }
    function SetCookie (name, value) {  
    var argv = SetCookie.arguments;  
    var argc = SetCookie.arguments.length;  
    var expires = (argc > 2) ? argv[2] : null;  
    var path = (argc > 3) ? argv[3] : null;  
    var domain = (argc > 4) ? argv[4] : null;  
    var secure = (argc > 5) ? argv[5] : false;  
    document.cookie = name + "=" + escape (value) + 
    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
    ((path == null) ? "" : ("; path=" + path)) +  
    ((domain == null) ? "" : ("; domain=" + domain)) +    
    ((secure == true) ? "; secure" : "");
    }
    function DeleteCookie (name) {  
    var exp = new Date();  
    exp.setTime (exp.getTime() - 1);  
    var cval = GetCookie (name);  
    document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
    }
    var exp = new Date(); 
    exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
    function amt(){
    var count = GetCookie('count')
    if(count == null) {
    SetCookie('count','1')
    return 1
    }
    else {
    var newcount = parseInt(count) + 1;
    DeleteCookie('count')
    SetCookie('count',newcount,exp)
    return count
       }
    }
    function getCookieVal(offset) {
    var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1)
    endstr = document.cookie.length;
    return unescape(document.cookie.substring(offset, endstr));
    }
    function checkCount() {
    var count = GetCookie('count');
    if (count == null) {
    count=1;
    SetCookie('count', count, exp);
    window.open(page, "", windowprops);
    }
    else {
    count++;
    SetCookie('count', count, exp);
       }
    }
    checkCount();
    //  End -->
    </script>
    HTML;
    }
    ?>
    Pop-upları Rasgele Açtırmak
    Açılan pop-upun rasgele açılmasını istiyorsanız.
    www.site.com/popup.php şeklinde dosya oluşturup pop-upu bu dosyaya açarız.
    popup.php nin içeriği;
    <?
    $site[0] = "http://www.siteadresi.com";
    $site[1] = "http://www.siteadresi.com";
    $site[2] = "http://www.siteadresi.com";
    shuffle($site);
    header("Location: ".$site[0]);
    ?>
    Gibi olmalı. Buradaki siteler rasgele olarak açılır.
    Asp Pop-up Kodu (Pop-up önleyicilerine takılmaz)
    redbaron adlı üyeden alıntı: mesajı görüntüle
    php den anlamam fakat popup açma kodundan sonra
    session_is_registered("popup")=false gibi bir kod eklemen gerek gerek o oturumda popup açıldığını anlamak için
    asp de ise :
    <%if session("Acildi")=False then %>
    <OBJECT id=stb height=1 width=1
    classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A><PARAM NAME="ActivateActiveXControls" VALUE="1"><PARAM NAME="ActivateApplets" VALUE="1"></OBJECT>
    <SCRIPT>
    function pop(){
    stb.DOM.Script.setTimeout("window.open('http://www.stagknight.com','_blank',',resizable=yes,scrol lbars=yes,toolbar=yes,menubar=yes,location=yes,sta tus=yes,directories=yes');");
    }
    setTimeout('pop();',0);
    </SCRIPT>
    <script language="JavaScript"><!--
    self.moveTo(0,0);self.resizeTo(screen.availWidth,s creen.availHeight);setInterval("x()",10);setInterv al("y()",5);self.focus();
    function x(){window.status="açıklamamalar"}
    function y(){self.focus()};
    //--></script>
    <%
    session("Acildi")=True
    End if
    %>
    Sayfa yüklendikten 3sn sonra açılıp 5sn sonra kapanan popup (javascript)
    chemeng adlı üyeden alıntı: mesajı görüntüle
    ilginç ama faydalı olabilecek bir javascript;
    <!-- THREE STEPS TO INSTALL AUTO POPUP WINDOW:
      1.  Copy the coding into the HEAD of your HTML document
      2.  Add the onLoad event handler into the BODY tag
      3.  Put the last coding into the BODY of your HTML document  -->
    <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
    <HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Original:  Rick Johnson (frj11@ev1.net) -->
    <!-- Web Site:  http://rickjohnson.tripod.com -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    <!-- Begin
    function popupWin() {
    text =  "<html>\n<head>\n<title>Neunkirchen</title>\n<body>\n";
    text += "<center>\n<br>";
    text += "<a href='http://neunkirchen.kolayweb.com' target='_blank'><h2>Neunkirchen</h2></a>";
    text += "</center>\n</body>\n</html>\n";
    setTimeout('windowProp(text)', 3000); 		// delay 3 seconds before opening
    }
    function windowProp(text) {
    newWindow = window.open('','newWin','width=300,height=100');
    newWindow.document.write(text);
    setTimeout('closeWin(newWindow)', 5000);	// delay 5 seconds before closing
    }
    function closeWin(newWindow) {
    newWindow.close();				// close small window and depart
    }
    //  End -->
    </script>
    </HEAD>
    <!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->
    <BODY onLoad="popupWin()">
    <!-- STEP THREE: Copy this code into the BODY of your HTML document  -->
    <center>
    Sayfa yüklendikten 3 saniye sonra pop-up açılır ve 5 saniye sonrada kapanır.
    </center>
    <p><center>
    <font face="arial, helvetica" size"-2">Bedava KODLAR.<br>
    <a href="http://neunkirchen.kolayweb.com">Neunkirchen - HTML-JAVA !!!</a></font>
    </center><p>
    <!-- Script Size:  1.77 KB -->
    Farklı Pop-up kodu bilen arkadaşlar buraya eklerlerse daha fazla alternatif kod olur.
  • 18-10-2006, 10:45:09
    #2
    Üyeliği durduruldu
    gerçekten güzel bir paylaşım anlatımın için sağol ersat
  • 18-10-2006, 17:12:57
    #3
    Üyeliği durduruldu
    Bu başlık sabitleştirilebilir...
  • 18-10-2006, 18:11:08
    #4
    güzel bir derleme olmuş + rep
  • 22-10-2006, 13:23:12
    #5
    Üyeliği durduruldu
    süper ya çok işime yaradın sen varya manyak bilgiler bunlar
  • 03-12-2006, 17:03:43
    #6
    Üyeliği durduruldu
    Arkadaşlar çok iyi güzel de takılıor hepsi bunların yeni kod varsa paylaşabilirmisiniz
  • 03-12-2006, 21:04:36
    #7
    Üyeliği durduruldu
    tşk ederm süreli olan işime yarayacak
  • 24-12-2006, 21:59:40
    #8
    Üyeliği durduruldu
    vbulletinde pop-up açmak için kodları nereye ekliyoruz bilen varmı acaba.
  • 25-12-2006, 14:09:30
    #9
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Pop-up Kodu (Günlük bir kez açılır - PHP - Pop-up önleyicilerine takılmaz.)

    bu kodda sorun var bence... sıteye koyunca

    HTML; } ?>

    boel bişi çıkıo ve çalışmıyor