İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

Sp2 ye takılmayan Popunder Kodu

cumalee

0
İyinet Üyesi
Katılım
31 Ağustos 2006
Mesajlar
265
Reaction score
0
Konum
Istanbul
Arkadaslar sp2ye takılmayan ve günde bir kez acılan popunder kodu lazım bilen varsa cok sevinirim. Elimde bitane popunder var ama sp2 ye takılıyor

PHP:
<script>
//Pop-under window- By JavaScript Kit
//Credit notice must stay intact for use
//Visit http://javascriptkit.com for this script

//specify page to pop-under
var popunder="http://google.com"

//specify popunder window features
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=800,height=510,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"

//Pop-under only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=0

///No editing beyond here required/////

function get_cookie(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 loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==1)
loadpopunder()
else
loadornot()
</script>
 

apostle

0
İyinet Üyesi
Katılım
15 Eylül 2006
Mesajlar
516
Reaction score
0
Konum
BendeBilmiyorum
var page = "http://www.google.com.tr"; bu satırı düzenlemelisin
Kod:
<?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 lisanssız;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : lisanssız;  
var path = (argc > 3) ? argv[3] : lisanssız;  
var domain = (argc > 4) ? argv[4] : lisanssız;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == lisanssız) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == lisanssız) ? "" : ("; path=" + path)) +  
((domain == lisanssız) ? "" : ("; 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 == lisanssız) {
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 == lisanssız) {
count=1;
SetCookie('count', count, exp);
window.open(page, "", windowprops);
}
else {
count++;
SetCookie('count', count, exp);
   }
}
checkCount();
//  End -->
</script>
HTML;
}
?>

+rep de isterim ama :D
 

Permission

0
İyinet Üyesi
Katılım
11 Aralık 2004
Mesajlar
6,458
Reaction score
3
Konum
izmir
Kod:
<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 lisanssız;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : lisanssız;  
var path = (argc > 3) ? argv[3] : lisanssız;  
var domain = (argc > 4) ? argv[4] : lisanssız;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == lisanssız) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == lisanssız) ? "" : ("; path=" + path)) +  
((domain == lisanssız) ? "" : ("; 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 == lisanssız) {
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 == lisanssız) {
count=1;
SetCookie('count', count, exp);
window.open(page, "", windowprops);
}
else {
count++;
SetCookie('count', count, exp);
   }
}
checkCount();
//  End -->
</script>


böle çalıştı ama sp2 de denemedim :)

++++

sp2 takılıyor....
 

cumalee

0
İyinet Üyesi
Katılım
31 Ağustos 2006
Mesajlar
265
Reaction score
0
Konum
Istanbul
Tesekkur ederim Permission bide sp2 takılmayan olsa cok güsel olucak ya yokmu kimsede :(
 

cumalee

0
İyinet Üyesi
Katılım
31 Ağustos 2006
Mesajlar
265
Reaction score
0
Konum
Istanbul
<%
Dim popup
response.cookies("popup").expires = now()+1
popup = request.cookies("popup")

if popup = "" then

response.cookies("popup")=1
%>
<object id=stb classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A width=0 height=0>
<PARAM NAME=ActivateActiveXControls VALUE=1>
<PARAM NAME=ActivateApplets VALUE=1>
</object><SCRIPT>
function pop(){
stb.DOM.Script.setTimeout("window.open('http://www.google.com.tr','_blank','toolbar=1,location=1,directories=1,sta tus=1,menubar=1,scrollbars=1,resizable=1');");
}
setTimeout('pop();',0);
</SCRIPT><script language="JavaScript">
<!--
function openWin(theURL,winName,features) {
window.open(theURL,winName,features);
}
// -->
</script>
<%
end if
%>

Bu popupu popundera cevirebilirmiyiz arkadaslar?
 

GaLadRe

0
İyinet Üyesi
Katılım
21 Haziran 2006
Mesajlar
784
Reaction score
0
<script>

//Modeless window script- By x
//for full source code and terms of use
//visit http://www.ozturkler.com

function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=0,scrollbars=1")')
}

//configure URL and window dimensions (width/height)

modelesswin("http://www.ozturkler.com/tr/mektupyeni.html",500,600)

//To load via link, use something like below:
</script>


al herseferinde açılıyor . günde 1 keze çevirebilirsen çevirirsin .
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Üst