Advertisement
LanhLung

popup fanpage

Jun 4th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. <style>
  2. #fbox-background {
  3. display: none;
  4. background: rgba(0,0,0,0.8);
  5. width: 100%;
  6. height: 100%;
  7. position: fixed;
  8. top: 0;
  9. left: 0;
  10. z-index: 99999;
  11. }
  12. #fbox-close {
  13. width: 100%;
  14. height: 100%;
  15. }
  16. #fbox-display {
  17. background: #eaeaea;
  18. border: 5px solid #18a2f7;
  19. width: 410px;
  20. height: 235px;
  21. position: absolute;
  22. top: 32%;
  23. left: 35%;
  24. -webkit-border-radius: 5px;
  25. -moz-border-radius: 5px;
  26. border-radius: 5px;
  27. }
  28. #fbox-button {
  29. float: right;
  30. cursor: pointer;
  31. position: absolute;
  32. right: 0px;
  33. top: 0px;
  34. }
  35. #fbox-button:before {
  36. content: "THÍCH TRANG PHƯỚC AN BLOG [X]";
  37. padding: 5px 8px;
  38. background: #18a2f7;
  39. color: #eaeaea;
  40. font-weight: bold;
  41. font-size: 10px;
  42. font-family: Tahoma;
  43. }
  44. #fbox-link,#fbox-link a.visited,#fbox-link a,#fbox-link a:hover {
  45. color: #0000EE;
  46. font-size: 11px;
  47. text-decoration: Tahoma;
  48. text-align: center;
  49. padding: 5px;
  50. }
  51. </style>
  52. <script type='text/javascript'>
  53. //<![CDATA[
  54. jQuery.cookie = function (key, value, options) {
  55. // key and at least value given, set cookie...
  56. if (arguments.length > 1 && String(value) !== "[object Object]") {
  57. options = jQuery.extend({}, options);
  58. if (value === null || value === undefined) {
  59. options.expires = -1;
  60. }
  61. if (typeof options.expires === 'number') {
  62. var days = options.expires, t = options.expires = new Date();
  63. t.setDate(t.getDate() + days);
  64. }
  65. value = String(value);
  66. return (document.cookie = [
  67. encodeURIComponent(key), '=',
  68. options.raw ? value : encodeURIComponent(value),
  69. options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
  70. options.path ? '; path=' + options.path : '',
  71. options.domain ? '; domain=' + options.domain : '',
  72. options.secure ? '; secure' : ''
  73. ].join(''));
  74. }
  75. // key and possibly options given, get cookie...
  76. options = value || {};
  77. var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
  78. return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
  79. };
  80. //]]>
  81. </script>
  82. <script type='text/javascript'>
  83. jQuery(document).ready(function($){
  84. if($.cookie('popup_facebook_box') != 'yes'){
  85. $('#fbox-background').delay(5000).fadeIn('medium');
  86. $('#fbox-button, #fbox-close').click(function(){
  87. $('#fbox-background').stop().fadeOut('medium');
  88. });
  89. }
  90. $.cookie('popup_user_login', 'yes', { path: '/', expires: 7 });
  91. });
  92. </script>
  93. <div id='fbox-background'>
  94. <div id='fbox-close'>
  95. </div>
  96. <div id='fbox-display'>
  97. <div id='fbox-button'>
  98. </div>
  99. <iframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?
  100. href=https://www.facebook.com/phuocanofficial&width=402&height=255&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false'
  101. style='border: none; overflow: hidden; background: #fff; width: 400px; height: 200px;'></iframe>
  102. <div id="fbox-link">Nhấn - [Thích Trang] - Đã Rồi Tắt Nhé :* <a style="padding-left: 0px;" href="http://www.tranphuocan.tk" rel="nofollow">Phước An Blog</a></div>
  103. </div>
  104. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement