Hallo! Selamat Datang di Marketplace produk digital, Freelancer terbaik di indonesia (68495 Members, 790 Products, 5357 Topic, 13048 Comments)

Popup Fanpage Facebook Sekali Muncul Pada Halaman Utama Web Sekolah

Dibuat
Login Terakhir 2 Bulan lalu,
Telah Dilihat 1592 Kali
NUR WAHID JI Mengatakan : Sultan Account
  1. Assalamualaikum Warahmatullahi Wabarakatuh...
  2. Berikut saya share kode nya: letakan pada file views/phpmu-tigo/template.php di paling bwah, script fan page ini hanya sekali muncul saja. Akan muncul lagi jika cache browser di hapus.
  3. note : silahkan ganti ####### dengan nama fanpage anda
  4.  
  5. <!--facebook popup-->
  6. <style type="text/css">
  7. #fbox-background{display:none;background:rgba(0,0,0,0.8);width:100%;height:100%;position:fixed;top:0;left:0;z-index:99999}#fbox-close{width:100%;height:100%}#fbox-display{background:#eaeaea;border:5px solid #828282;width:340px;height:280px;position:absolute;top:32%;left:37%;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}#fbox-button{float:right;cursor:pointer;position:absolute;right:0;top:0}#fbox-button:before{content:"CLOSE";padding:5px 8px;background:#828282;color:#eaeaea;font-weight:700;font-size:10px;font-family:Tahoma}#fbox-link,#fbox-link a.visited,#fbox-link a,#fbox-link a:hover{color:#aaa;font-size:9px;text-decoration:none;text-align:center;padding:5px}
  8. </style>
  9. <script type='text/javascript'>
  10. //<![CDATA[
  11. jQuery.cookie=function(a,b,c){if(arguments.length>1&&"[object Object]"!==String(b)){if(c=jQuery.extend({},c),null!==b&&void 0!==b||(c.expires=-1),"number"==typeof c.expires){var d=c.expires,e=c.expires=new Date;e.setDate(e.getDate()+d)}return b=String(b),document.cookie=[encodeURIComponent(a),"=",c.raw?b:encodeURIComponent(b),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}c=b||{};var f,g=c.raw?function(a){return a}:decodeURIComponent;return(f=new RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)").exec(document.cookie))?g(f[1]):null};
  12. //]]>
  13. </script>
  14. <script type='text/javascript'>
  15. jQuery(document).ready(function($){
  16. if($.cookie('popup_facebook_box') != 'yes'){
  17. $('#fbox-background').delay(5000).fadeIn('medium');
  18. $('#fbox-button, #fbox-close').click(function(){
  19. $('#fbox-background').stop().fadeOut('medium');
  20. });
  21. }
  22. $.cookie('popup_facebook_box', 'yes', { path: '/', expires: 7 });
  23. });
  24. </script>
  25. <div id='fbox-background'>
  26. <div id='fbox-close'>
  27. </div>
  28. <div id='fbox-display'>
  29. <div id='fbox-button'>
  30. </div>
  31.  
  32. <iframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?
  33. href=https://www.facebook.com/#########/&width=339&height=255&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false'
  34. style='border: none; overflow: hidden; background: #fff; width: 339px; height: 200px;'>
  35. </iframe>
  36. <script src="https://apis.google.com/js/platform.js"></script>
  37.  
  38. </div>
  39.  
  40. </div>
  41. <!--end facebook popup-->
  42.  
  43.  

Ada 1 Jawaban

Bukhori Muslim
commented on 21 Agu 2018 06:19:56
  1. Assalam,.. Mantappppppp,...
  2. Terima kasih sudah berbagi. ^_^
Maaf, Untuk Memberikan Komentar Anda Harus Login !!!

Online