• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

[Share] code popup hiện 1 popup trên 1 lần mở/IP

Admin

Well-Known Member
Staff member
Administrator
PHP:
var oLink = document.body.getElementsByTagName("a"); var oLen = oLink.length;  for (var i = 0; i<oLen; i++) {     if (oLink[i].onclick == null) {         oLink[i].onclick = function() {             open_question();         }     } }    function open_question() {     var cookie_name = 'new_question_window_1_day';     var a = Get_Cookie(cookie_name);     if (Get_Cookie(cookie_name) == null) {         //if (confirm("Bạn có muốn vào trang này không?")) {             window.open("http://domain/","");                     //}         Set_Cookie( cookie_name, '1', 1, '/', 'Domain', '' );     }     }  function Set_Cookie( name, value, expires, path, domain, secure ) {     // set time, it's in milliseconds     var today = new Date();     today.setTime( today.getTime() );      /*     if the expires variable is set, make the correct     expires time, the current script below will set     it for x number of days, to make it for hours,     delete * 24, for minutes, delete * 60 * 24     */     if ( expires )    {         expires = expires * 1000 * 60 * 60 * 24;     }     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" : "" ); }  // this fixes an issue with the old method, ambiguous values // with this test document.cookie.indexOf( name + "=" ); function Get_Cookie( check_name ) {     // first we'll split this cookie up into name/value pairs     // note: document.cookie only returns name=value, not the other components     var a_all_cookies = document.cookie.split( ';' );     var a_temp_cookie = '';     var cookie_name = '';     var cookie_value = '';     var b_cookie_found = false; // set boolean t/f default f      for ( i = 0; i < a_all_cookies.length; i++ )     {         // now we'll split apart each name=value pair         a_temp_cookie = a_all_cookies[i].split( '=' );           // and trim left/right whitespace while we're at it         cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');          // if the extracted name matches passed check_name         if ( cookie_name == check_name )         {             b_cookie_found = true;             // we need to handle case where cookie has no value but exists (no = sign, that is):             if ( a_temp_cookie.length > 1 )             {                 cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );             }             // note that in cases where cookie is initialized but no value, null is returned             return cookie_value;             break;         }         a_temp_cookie = null;         cookie_name = '';     }     if ( !b_cookie_found )     {         return null;     } }  // this deletes the cookie when called 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"; }
Lưu đoạn này lại thành file .js
Rồi đăt đoạn Script này vào web ở nơi tùy ý.
HTML:
<script type="text/javascript" src="link đến file .js"></script>



 
Là code gì a thắng. Dùng cho johncms ko?
 
Chức năng là sao , a mô tả tí .e ko hiểu.
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
Admin [Share] code javascript popup tự ẩn sau trình duyệt chính Javascript/ajax 3
Admin Share 15GB source code Android bao gồm Unity Android, iOS 5
Admin Share code Nukeviet 4.4.02 mới nhất - Code tin tức tốt nhất Việt Nam Mã nguồn web 3
Admin Share code và data game bài Gowin 2019 mới nhất Mã nguồn web 9
Npnken Share Share code shop nick tự động - shopbumma.com PHP 3
SuperTroll Share code chat cho wap4.co Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
SuperTroll Share Code đua Pet cho MXH Team Johncms 0
SuperTroll Share Code JohnCMS Mefun.VN Johncms 0
L Share Full Code Gocvn.Org Johncms 1
cuongpro9x Share Share Code Chia Sẻ Video Cực Đẹp Nhiều Chức Năng All Shared Scripts 1
MrTrieu Share Share code blog JohnCMS làm wap game, truyện, blog thủ thuật đẹp Johncms 2
cuongpro9x Share Share Code Get Link Max BW onbox All Shared Scripts 1
H Share Share Full code VBB openitvn.net Vbulletin 1
H Share Share code game oẳn tù tì lột đồ girl cho JohnCMS by Nguyên Ary Johncms 1
H Share Share code và data WapIT JohnCMS 4.5.1 Johncms 0
T Share Tổng Hợp Code Tool Mod Java Online [full] All Shared Scripts 0
cuongpro9x Share Share code MXH Avatar trên wap VINA4U.MOBI PREMIUM Johncms 14
H Share [XtGem] Share code lấy id tag tên và ảnh b.bè trên FaceBook Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
H Share Share Code GhCMS - code giúp cho việc tạo wap trên WapMienPhi thật đơn giản Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
H Share Share Code sao lưu, Phục Hồi CSDL Cực Cool chỉ 1 file duy nhất All Shared Scripts 0
H Share Share code Wilib mod giống trasua.mobi All Shared Scripts 0
T Hỏi Anh em pro nào có code này share em với ạ ! Wordpress 1
NhokLove Share Share lại code nhật ký love All Shared Scripts 3
T Share tổng hợp code tiện ích của gocvn PHP 0
T Share code wap chat PHP v1.3 PHP 0
T SHARE Code cùng chuyên mục blog xtgem Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
T Share Code xóa quảng cáo Xtgem bằng css Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
V Share - Code blog JohnCMS làm wap game, truyện Johncms 5
V Share Share code filelist 99% không time out + toolpost cho xtgem by Sắt Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
T Share Share Code Mod Thay đổi Màu Nick Tùy Ý Cho Johncms Johncms 1
H Code m4um giống m4v 99% share by F4v Johncms 1
H ai share giup e code upload voi Mã nguồn wap 1
K Share Share code fake sms củamobiviet.vn đang dùng All Shared Scripts 1
Kayashiteru Share code đánh dấu trang Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
Kayashiteru Share Share code chống reg nick quá 3 lần trên 1 IP All Shared Scripts 0
Kayashiteru Share share code igunny.ml pb v3 fix sach loi va có nhieu game mini All Shared Scripts 2
djdungcuty Share Share Code trang trí cho website đón Tết cực đẹp Javascript/ajax 1
KhangSkull Share code Bazar Shop - Template bán hàng cực đẹp Wordpress v2.0.0 Wordpress 5
Yeukodamnoi Share Share code auto like Facebook - Bấm vào đâu cũng like All Shared Scripts 3
W Share Share code wap 18+ Johncms 2
H Share code WapFTP by DienDanVn.Me Johncms 2
Myshare Share Code Blog JohnCMS 5.1.0 Giống Wap4VN Johncms 1
Yeukodamnoi [JohnCMS] Share code auto tag lấy từ kết quả hiển thị của Google Johncms 0
H Share code johncms giống teamobi hàng độc by vina4u.mobi Johncms 0
C Share Share code filelist SMS KUTE cho ai làm wap xtgem đây!! Javascript/ajax 1
A Share Code PHP Tạo Logo "Angry Birds" By Nguyên Ary Mã nguồn wap 1
N Share share code Xenforo Vntech24.Net Full Mod 2013 Xenforo 5
V Share code Xenforo giống daivietpda All Shared Scripts 2
V Share code xenforo dùng làm wap truyện, game, tin tức All Shared Scripts 0
O Share Share code mạng xã hội mà Zing me đang sử dụng (việt hóa). All Shared Scripts 0

Similar threads

New posts New threads New resources

Back
Top