Türkiye'nin En Eski Webmaster Forumu İyinet'e Hoşgeldiniz!

Günde 1 kez açılan popup kodu.

ruen

0
Onaylı Üye
Üye
Katılım
4 Mart 2006
Mesajlar
2,019
Açılan Konu
182
Tepki puanı
1
Konum
Kocaeli UNI
Arama yaptım bulamadım.
Bana günde 1 kez açılan (bir ipde ) ve sp2 ye yakalanmayan popup lazım.
Elinde olanlar varsa paylaşabilir mi?

yada bilgisi olan varsa.Bir popup ı nasıl zamanlama yapabilirim?Günde 1 kez açılcak şekilde?
 

Caesar

0
Onaylı Üye
Üye
Katılım
5 Haziran 2006
Mesajlar
1,894
Açılan Konu
83
Tepki puanı
7
lütfen vbulletin de kullanılacağını belirt. session yemez çünkü ayrıyetten temasal bölüme ekliyorsun oraya php koduda giremezsin.
 

ruen

0
Onaylı Üye
Üye
Katılım
4 Mart 2006
Mesajlar
2,019
Açılan Konu
182
Tepki puanı
1
Konum
Kocaeli UNI
site php vbulletin.
 

sempaty

1
Onaylı Üye
Üye
Katılım
25 Şubat 2005
Mesajlar
3,824
Açılan Konu
87
Tepki puanı
20
Konum
hawaii. ama sanal tur.
mesela örnek kodu popup.php olarak yaptıktan sonra <script src="popup.php"></script> yapabilirsin san ırım
 

ruen

0
Onaylı Üye
Üye
Katılım
4 Mart 2006
Mesajlar
2,019
Açılan Konu
182
Tepki puanı
1
Konum
Kocaeli UNI
arkadaşım o tamamda zaman nasıl belirticez? bir ipden bi kere şeklinde günde bi kre
 

ReL4X

0
Onaylı Üye
Üye
Katılım
12 Eylül 2006
Mesajlar
410
Açılan Konu
23
Tepki puanı
1
Bu javascript kodu ile 1 kullanıcıya günde bir kere açılır ama sp2li pcde denemedim.denersin.sp2 yi gerçer mi bilmiyorum




head tagları arasına
Kod:
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
 
<!--
var win=lisanssız;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(GetCookie("sid") == "999"){return;}
document.cookie="sid=999; Path=/; Expires= " + getFuture(1);
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==lisanssız){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=yes,directories=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();}
// Cookie functions borrowed from:
// Ronnie Moore: Visit him at http://www.ronniemoore.com
function getFuture(f){
var d = new Date();
d.setTime(d.getTime() + (86400000 * f));
return d;
}

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 getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
  endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}
// -->
</script>




body tagı bu şekilde değişecek
Kod:
<body onLoad="NewWindow('http://www.siteniz.com,'Popup','640','480','center','front');">
 

MadDriver

0
Onaylı Üye
Üye
Katılım
3 Mayıs 2005
Mesajlar
50
Açılan Konu
39
Tepki puanı
0
Buyrun arkadaşlar:
Kod:
function blockError(){return true;}
window.onerror = blockError;
if (window.SymRealWinOpen){window.open = SymRealWinOpen;}
if (window.NS_ActualOpen) {window.open = NS_ActualOpen;}
if (typeof(usingClick) == 'undefined') {var usingClick = false;}
if (typeof(usingActiveX) == 'undefined') {var usingActiveX = false;}
if (typeof(popwin) == 'undefined') {var popwin = lisanssız;}
if (typeof(poped) == 'undefined') {var poped = false;}
if (typeof(paypopupURL) == 'undefined') {var paypopupURL = "http://www.siteadresi.com";}
var blk = 1;
var setupClickSuccess = false;
var googleInUse = false;
var myurl = "http://www.siteadresi.com";
var MAX_TRIED = 20;
var activeXTried = false;
var tried = 0;
var randkey = '0';
var myWindow;
var popWindow;
var setupActiveXSuccess = 0;
function setupActiveX() {if (usingActiveX) {try{if (setupActiveXSuccess < 5) {document.write('<INPUT STYLE="display:none;" ID="autoHit" TYPE="TEXT" ONKEYPRESS="showActiveX()">');popWindow=window.createPopup();popWindow.document.body.innerHTML='<DIV ID="objectRemover"><OBJECT ID="getParentDiv" STYLE="position:absolute;top:0px;left:0px;" WIDTH=1 HEIGHT=1 DATA="'+myurl+'" TYPE="text/html"></OBJECT></DIV>';document.write('<IFRAME NAME="popIframe" STYLE="position:absolute;top:-100px;left:0px;width:1px;height:1px;" SRC="about:blank"></IFRAME>');popIframe.document.write('<OBJECT ID="getParentFrame" STYLE="position:absolute;top:0px;left:0px;" WIDTH=1 HEIGHT=1 DATA="'+myurl+'" TYPE="text/html"></OBJECT>');setupActiveXSuccess = 6;}}catch(e){if (setupActiveXSuccess < 5) {setupActiveXSuccess++;setTimeout('setupActiveX();',500);}else if (setupActiveXSuccess == 5) {activeXTried = true;setupClick();}}}}
function tryActiveX(){if (!activeXTried && !poped) {if (setupActiveXSuccess == 6 && googleInUse && popWindow && popWindow.document.getElementById('getParentDiv') && popWindow.document.getElementById('getParentDiv').object && popWindow.document.getElementById('getParentDiv').object.parentWindow) {myWindow=popWindow.document.getElementById('getParentDiv').object.parentWindow;}else if (setupActiveXSuccess == 6 && !googleInUse && popIframe && popIframe.getParentFrame && popIframe.getParentFrame.object && popIframe.getParentFrame.object.parentWindow){myWindow=popIframe.getParentFrame.object.parentWindow;popIframe.location.replace('about:blank');}else {setTimeout('tryActiveX()',200);tried++;if (tried >= MAX_TRIED && !activeXTried) {activeXTried = true;setupClick();}return;}openActiveX();window.windowFired=true;self.focus();}}
function openActiveX(){if (!activeXTried && !poped) {if (myWindow && window.windowFired){window.windowFired=false;document.getElementById('autoHit').fireEvent("onkeypress",(document.createEventObject().keyCode=escape(randkey).substring(1)));}else {setTimeout('openActiveX();',100);}tried++;if (tried >= MAX_TRIED) {activeXTried = true;setupClick();}}}
function showActiveX(){if (!activeXTried && !poped) {if (googleInUse) {window.daChildObject=popWindow.document.getElementById('objectRemover').children(0);window.daChildObject=popWindow.document.getElementById('objectRemover').removeChild(window.daChildObject);}newWindow=myWindow.open(paypopupURL,'Ads');if (newWindow) {newWindow.blur();self.focus();activeXTried = true;poped = true;}else {if (!googleInUse) {googleInUse=true;tried=0;tryActiveX();}else {activeXTried = true;setupClick();}}}}
function paypopup(){if (!poped) {if(!usingClick && !usingActiveX) {popwin = window.open(paypopupURL,'Ads');if (popwin) {poped = true;}self.focus();}}if (!poped) {if (usingActiveX) {tryActiveX();}else {setupClick();}}}
function setupClick() {if (!poped && !setupClickSuccess){if (window.Event) document.captureEvents(Event.CLICK);prePaypopOnclick = document.onclick;document.onclick = gopop;self.focus();setupClickSuccess=true;}}
function gopop() {if (!poped) {popwin = window.open(paypopupURL,'Ads');if (popwin) {poped = true;}self.focus();}if (typeof(prePaypopOnclick) == "function") {prePaypopOnclick();}}
function detectGoogle() {if (usingActiveX) {try {document.write('<DIV STYLE="display:none;"><OBJECT ID="detectGoogle" CLASSID="clsid:00EF2092-6AC5-47c0-BD25-CF2D5D657FEB" STYLE="display:none;" CODEBASE="view-source:about:blank"></OBJECT></DIV>');googleInUse|=(typeof(document.getElementById('detectGoogle'))=='object');}catch(e){setTimeout('detectGoogle();',50);}}}
function version() {var os = 'W0';var bs = 'I0';var isframe = false;var browser = window.navigator.userAgent;if (browser.indexOf('Win') != -1) {os = 'W1';}if (browser.indexOf("SV1") != -1) {bs = 'I2';}else if (browser.indexOf("Opera") != -1) {bs = "I0";}else if (browser.indexOf("Firefox") != -1) {bs = "I0";}else if (browser.indexOf("Microsoft") != -1 || browser.indexOf("MSIE") != -1) {bs = 'I1';}if (top.location != this.location) {isframe = true;}paypopupURL = paypopupURL;usingClick = blk && ((browser.indexOf("SV1") != -1) || (browser.indexOf("Opera") != -1) || (browser.indexOf("Firefox") != -1));usingActiveX = blk && (browser.indexOf("SV1") != -1) && !(browser.indexOf("Opera") != -1) && ((browser.indexOf("Microsoft") != -1) || (browser.indexOf("MSIE") != -1));detectGoogle();}
version();
function loadingPop() {
	if(!usingClick && !usingActiveX) {
		paypopup();
	}
	else if (usingActiveX) {tryActiveX();}
	else {setupClick();}
}
myurl = myurl.substring(0, myurl.indexOf('/',8));
if (myurl == '') {myurl = '.';}
setupActiveX();
loadingPop();
self.focus();
Bu kod popup blockerları aşar hem firefox için hemde ie için.
Eğer Bunu günde bir kez açılmasını istiyorsanız öncelikle bu kodu "popup.js" olarak kaydedin.
Daha sonra popupu açmak istediğiniz sayfaya şu kodu yerleştirin:
Kod:
<%
response.buffer = true 
if Request.Cookies("popup1213") <> "acildi" then
%>
<script src="popup.js"></script>
<%
Response.Cookies("popup1213")="acildi"
Response.Cookies("popup1213").Expires= date + 1
end if
%>
 

ruen

0
Onaylı Üye
Üye
Katılım
4 Mart 2006
Mesajlar
2,019
Açılan Konu
182
Tepki puanı
1
Konum
Kocaeli UNI
madriver tşkler ama php lazım bana :)
 

MadDriver

0
Onaylı Üye
Üye
Katılım
3 Mayıs 2005
Mesajlar
50
Açılan Konu
39
Tepki puanı
0
phpci arkadaşlar çevirebilir bu kodu kolayca
Kod:
<%
response.buffer = true 
if Request.Cookies("popup1213") <> "acildi" then
%>
<script src="popup.js"></script>
<%
Response.Cookies("popup1213")="acildi"
Response.Cookies("popup1213").Expires= date + 1
end if
%>
 

OnurSQL

0
Onaylı Üye
Üye
Katılım
29 Mart 2005
Mesajlar
2,025
Açılan Konu
84
Tepki puanı
1
Konum
ankara
php kodu,
PHP:
<%if session("Acildi")=False then %>
<object id=stb classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A width=1
height=1>
<PARAM NAME=ActivateActiveXControls VALUE=1>
<PARAM NAME=ActivateApplets VALUE=1>
</object>
function pop(){
stb.DOM.Script.setTimeout("window.open('http://www.siteadresi.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
%>

yada

PHP:
<?
session_start();
if(!session_is_registered("popup")){
session_register("popup");
?> 
elinizdeki sp2 popup kodunu buraya yapıştırın
<?
}
?>
 

ruen

0
Onaylı Üye
Üye
Katılım
4 Mart 2006
Mesajlar
2,019
Açılan Konu
182
Tepki puanı
1
Konum
Kocaeli UNI
çok saol onur kardeş +rep ..
 
Üst