Tâm trạng hàng ngày | Hạnh phúc 2-7-2025 09:43 PM |
|---|
Đã viết: 13 ngày [LV.3]Spam 3
|
Mời bạn đăng ký để giao lưu kết bạn nhé <3
Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký
x
- function Set_Cookie(name, value, expires, path, domain, secure) {
- var today = new Date();
- today.setTime(today.getTime());
- if (expires) {
- expires = expires * 1000 * 60 * 60 * 2;
- }
- var expires_date = new Date(today.getTime() + (expires));
- document.cookie = name + "=" + escape(value) +
- ((expires) ? ";expires=" + expires_date.toGMTString() : "") +
- ((path) ? ";path=" + path : "") +
- ((domain) ? ";domain=" + domain : "") +
- ((secure) ? ";secure" : "");
- }
- function Get_Cookie(name) {
- var start = document.cookie.indexOf(name + "=");
- var len = start + name.length + 1;
- if ((!start) &&
- (name != document.cookie.substring(0, name.length))) {
- return null;
- }
- if (start == -1) return null;
- var end = document.cookie.indexOf(";", len);
- if (end == -1) end = document.cookie.length;
- return unescape(document.cookie.substring(len, end));
- }
- function Delete_Cookie(name, path, domain) {
- if (Get_Cookie(name)) document.cookie = name + "=" +
- ((path) ? ";path=" + path : "") +
- ((domain) ? ";domain=" + domain : "") +
- ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
- }
- function popunder() {
- var remember_N2Cx1 = Get_Cookie('N2Cx1');
- var remember_N2Cx2 = Get_Cookie('N2Cx2');
- var remember_N2Cx3 = Get_Cookie('N2Cx3');
- var remember_N2Cx4 = Get_Cookie('N2Cx4');
- if(!remember_N2Cx1)
- {
- params1 = 'width=640';
- params1 += ', height=768';
- params1 += ', top=0, left=0,scrollbars=yes';
- params1 += ', toolbar=yes,location=yes,status=yes,menubar=yes,resizable=yes';
- params1 += ', fullscreen=yes';
- pop1 = window.open("http://www.daklak.org", 'window1', params1).blur();
- Set_Cookie('N2Cx1', 'N2Cx1 PopUnder', '1', '/', '', '');
- window.focus();
- }
- if(!remember_N2Cx2)
- {
- params1 = 'width=640';
- params1 += ', height=768';
- params1 += ', top=0, left=0,scrollbars=yes';
- params1 += ', toolbar=yes,location=yes,status=yes,menubar=yes,resizable=yes';
- params1 += ', fullscreen=yes';
- pop2 = window.open("http://www.daklak.org", 'window2', params1).blur();
- Set_Cookie('N2Cx2', 'N2Cx2 PopUnder', '1', '/', '', '');
- window.focus();
- }
- if(!remember_N2Cx3)
- {
- params1 = 'width=640';
- params1 += ', height=768';
- params1 += ', top=0, left=0,scrollbars=yes';
- params1 += ', toolbar=yes,location=yes,status=yes,menubar=yes,resizable=yes';
- params1 += ', fullscreen=yes';
- pop3 = window.open("http://www.daklak.org", 'window3', params1).blur();
- Set_Cookie('N2Cx3', 'N2Cx3 PopUnder', '1', '/', '', '');
- window.focus();
- }
- if(!remember_N2Cx4)
- {
- params1 = 'width=640';
- params1 += ', height=768';
- params1 += ', top=0, left=0,scrollbars=yes';
- params1 += ', toolbar=yes,location=yes,status=yes,menubar=yes,resizable=yes';
- params1 += ', fullscreen=yes';
- pop4 = window.open("http://www.daklak.org", 'window4', params1).blur();
- Set_Cookie('N2Cx4', 'N2Cx4 PopUnder', '1', '/', '', '');
- window.focus();
- }
- }
Sao chép mã Hoặc tự tạo code ở đây
http://www.javascriptkit.com/popwin/index.shtml |
|