İyinet'e Hoşgeldiniz!

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

Kayıt Ol!

1 ipye 1 popup kodu lazım

FB-DeViL

0
İyinet Üyesi
Katılım
16 Aralık 2005
Mesajlar
8
Reaction score
0
forumda aradım bazı popup kodları buldum denedim ama olmadı

1 ipye 1 kere açılsın popup her index.php gelince acılıyor cok sinir bir durum :(

cvblarınızı bekliyorum ..





not : topiği yanlış yere açmışım " HTML DHTML XML Javascript - Web scripting " taşınması lazım sanırım
 
P

php5

Misafir
Google da arama yapinca soyle bisey buldum:
<head> </head> arasina koyulacakmis:

<script>
//specify page to pop-under
var popunder="http://www.siteismi.com/popupsayfasi.html"
//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=1
///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==0)
loadpopunder()
else
loadornot()
</script>

Alinti:
http://www.netevolution.co.uk/scripts.asp?ID=46
 

Unutmam

0
İyinet Üyesi
Katılım
7 Ocak 2006
Mesajlar
1,567
Reaction score
0
<script LANGUAGE="JavaScript">
<!--
var expDays = 1;

var page = "http://www.forum.iyinet.com";
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>
 

FB-DeViL

0
İyinet Üyesi
Katılım
16 Aralık 2005
Mesajlar
8
Reaction score
0
@Unutmam

Bu kodu hiç bir zaman unutmayacam :D sağol


@php5

sanada teşekkürler
 

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

seo ajansı , sosyal medya yönetimi
Üst