PDA

View Full Version : xin đoạn java popup under nhiều trang một lúc



Gà Vịt
13-10-2010, 17:18
Bác nào có cho em xin nhé
có thể tùy biến cho thêm 2 hoặc nhiều trang popup
Dạng popup under
Set cookie 12h pop 1 lần/ 1ip
em cảm ơn :D

vuatintac
16-10-2010, 09:25
set thời gian thì mình không biết.
Nhưng đây là code mà mình đang dùng.


function addEvent(obj, eventName, func){
if (obj.attachEvent)
{
obj.attachEvent("on" + eventName, func);
}
else if(obj.addEventListener)
{
obj.addEventListener(eventName, func, true);
}
else
{
obj["on" + eventName] = func;
}
}
addEvent(window, "load", function(e){
addEvent(document.body, "click", function(e)
{
var pwidth = 700; //screen.width;
var pheight = screen.height;
var params = 'scrollbars,width='+ pwidth +', height='+ pheight +',resizable=1';


if(document.cookie.indexOf("tgtt") == -1)
{
var w = window.open("http://thegioitruyentranh.vn/mangas.php",'tgtt', params);
if (w)
{
document.cookie = "popx=tgtt;path=/;domain=thegioitruyentranh.vn";
w.blur();
w.moveTo(screen.width - pwidth, 0);
//window.focus();
}
}

// -------------- pop 2 --------------------
// var pwidth = 700; //screen.width;
// var pheight = 500; //screen.height;
// var params = 'scrollbars,width='+ pwidth +', height='+ pheight +',resizable=1';
// if(document.cookie.indexOf("pop2") == -1)
// {
// var w2 = window.open("http://www.onemekong.com/",'HB', params);
// if (w2)
// {
// document.cookie = "popunder2=pop2";
// w2.moveTo(screen.width - pwidth, screen.height - pheight);
// w2.blur();
// }
// window.focus();
// }

});
});



Copy đoạn comment ra để pop cho nhiều trang. :D
bên mình cũng đang cần mua pop, nếu bạn nào có vistor từ 13k ngày trở lên thì PM mình. giá max, 500k tháng! :rolleyes:

Cà Phê Sữa Đá
16-10-2010, 11:32
13k visitors/day mà 500k/tháng ai mà bán :D

kill_you
16-10-2010, 12:39
Copy đoạn comment ra để pop cho nhiều trang. :D
bên mình cũng đang cần mua pop, nếu bạn nào có vistor từ 13k ngày trở lên thì PM mình. giá max, 500k tháng! :rolleyes:
Bạn xem trang này được không : blog.kute19.co.cc >> 23k/day đấy . Bán đúng 499.999VND cho Bác. Cao hay thấp hơn đều không bán :D

vuatintac
17-10-2010, 09:12
13k visitors/day mà 500k/tháng ai mà bán :D

Vậy mà mình bán cao hơn không có người mua mới đau...
:no:

Người ta nói... cỡ site của bạn không đáng giá đó... thế là phan: 300k tháng, lúc ấy site mình 13k-16k visitors/day :crying:
người đấy cũng đang mua pop của rất nhiều anh em trên DDTH hiện tại.. giá tương tự :crying:

Saokim999
18-10-2010, 11:55
Vậy mà mình bán cao hơn không có người mua mới đau...
:no:

Người ta nói... cỡ site của bạn không đáng giá đó... thế là phan: 300k tháng, lúc ấy site mình 13k-16k visitors/day :crying:
người đấy cũng đang mua pop của rất nhiều anh em trên DDTH hiện tại.. giá tương tự :crying:

pm mình xem analytics

Cà Phê Sữa Đá
18-10-2010, 12:58
Vậy mà mình bán cao hơn không có người mua mới đau...
:no:

Người ta nói... cỡ site của bạn không đáng giá đó... thế là phan: 300k tháng, lúc ấy site mình 13k-16k visitors/day :crying:
người đấy cũng đang mua pop của rất nhiều anh em trên DDTH hiện tại.. giá tương tự :crying:

Với lượng visits 13-16k bạn có thể kiếm gấp đôi con số 500k đó với popads dưới sign mình.

viet4room
19-10-2010, 18:58
13k visitors/day mà 500k/tháng à
em cho bác không luôn đấy k tính tiền
hixhixx

vuatintac
20-10-2010, 17:52
Với lượng visits 13-16k bạn có thể kiếm gấp đôi con số 500k đó với popads dưới sign mình.

àh. nể tình bác đã giới thiệu.
Mình sẽ đăng ký thử theo refer_id của bác :emlaugh:

Chi tiết mình PM hỏi thêm nhé

:rolleyes:

vntux
20-10-2010, 18:43
Demo day ne: www.geektheme.com pôp búa lua xua

cavang125
20-10-2010, 18:49
Demo day ne: www.geektheme.com pôp búa lua xua

]Fatal error: Out of memory (allocated 5242880) (tried to allocate 122880 bytes) in /home/themetig/geektheme/wp-content/plugins/WPRobot/general.php(161) : eval()'d code on line 82


lol

Cà Phê Sữa Đá
20-10-2010, 23:11
Thử code này nhé. Pop-under, by pass được blocker, có thể điều chỉnh thời gian. Có comment bên dưới.


<script type="text/javascript">
var puShown = false;

function doOpen(url)
{
if ( puShown == true )
{
return true;
}

win = window.open(url, 'wmPu', 'toolbar,status,resizable,scrollbars,menubar,locat ion,height='+screen.height+',width='+screen.width) ; //Edit W/H as u want
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;

for (var n=0; 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('wpop') ) {
var e = e || window.event;
var win = doOpen('http://abc.com/'); //URL here
win.blur();
window.focus();


setCookie('wpop', 1, 3*60*60*1000); //1 pop per 3 hours.
}
}

initPu();
</script>

music9x8x
20-10-2010, 23:25
hay đấy nhưng pop nhiều sợ người ta sợ lần sau chẳng dám vào site nên em cứ chơi 2 cái + 24h thôi

vntux
21-10-2010, 17:24
]Fatal error: Out of memory (allocated 5242880) (tried to allocate 122880 bytes) in /home/themetig/geektheme/wp-content/plugins/WPRobot/general.php(161) : eval()'d code on line 82


lol

WP mà bạn, bị lỗi thiếu bộ nhớ hoài, refresh mấy cái là ok