Advertisement
armaanbhati

Untitled

May 14th, 2014
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.31 KB | None | 0 0
  1. <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'></script>
  2. <style>
  3. #fanback {
  4. display:none;
  5. background:rgba(0,0,0,0.8);
  6. width:100%;
  7. height:100%;
  8. position:fixed;
  9. top:0;
  10. left:0;
  11. z-index:99999;
  12. }
  13. #fan-exit {
  14. width:100%;
  15. height:100%;
  16. }
  17. #GeekPointFB {
  18. background:white;
  19. width:420px;
  20. height:270px;
  21. position:absolute;
  22. top:58%;
  23. left:63%;
  24. margin:-220px 0 0 -375px;
  25. -webkit-box-shadow: inset 0 0 50px 0 #939393;
  26. -moz-box-shadow: inset 0 0 50px 0 #939393;
  27. box-shadow: inset 0 0 50px 0 #939393;
  28. -webkit-border-radius: 5px;
  29. -moz-border-radius: 5px;
  30. border-radius: 5px;
  31. margin: -220px 0 0 -375px;
  32. }
  33. #FBwidgetGP {
  34. float:right;
  35. cursor:pointer;
  36. background:url(http://2.bp.blogspot.com/-AZTjGxU0Izw/U3HsXtE9lvI/AAAAAAAABPA/3OYanUS2FE8/s1600/close.png) repeat;
  37. height:15px;
  38. padding:20px;
  39. position:relative;
  40. padding-right:40px;
  41. margin-top:-20px;
  42. margin-right:-22px;
  43. }
  44. .remove-borda {
  45. height:1px;
  46. width:366px;
  47. margin:0 auto;
  48. background:#F3F3F3;
  49. margin-top:16px;
  50. position:relative;
  51. margin-left:20px;
  52. }
  53. #linkit,#linkit a.visited,#linkit a,#linkit a:hover {
  54. color:#80808B;
  55. font-size:10px;
  56. margin: 0 auto 5px auto;
  57. float:center;
  58. }
  59. </style>
  60.  
  61.  
  62. <script type='text/javascript'>
  63. //<![CDATA[
  64. jQuery.cookie = function (key, value, options) {
  65.  
  66. // key and at least value given, set cookie...
  67. if (arguments.length > 1 && String(value) !== "[object Object]") {
  68. options = jQuery.extend({}, options);
  69.  
  70. if (value === null || value === undefined) {
  71. options.expires = -1;
  72. }
  73.  
  74. if (typeof options.expires === 'number') {
  75. var days = options.expires, t = options.expires = new Date();
  76. t.setDate(t.getDate() + days);
  77. }
  78.  
  79. value = String(value);
  80.  
  81. return (document.cookie = [
  82. encodeURIComponent(key), '=',
  83. options.raw ? value : encodeURIComponent(value),
  84. options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
  85. options.path ? '; path=' + options.path : '',
  86. options.domain ? '; domain=' + options.domain : '',
  87. options.secure ? '; secure' : ''
  88. ].join(''));
  89. }
  90.  
  91. // key and possibly options given, get cookie...
  92. options = value || {};
  93. var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
  94. return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
  95. };
  96. //]]>
  97. </script>
  98. <script type='text/javascript'>
  99. jQuery(document).ready(function($){
  100. if($.cookie('fbpopup_user_new') != 'yes'){
  101. $('#fanback').delay(20000).fadeIn('medium');
  102. $('#FBwidgetGP, #fan-exit').click(function(){
  103. $('#fanback').stop().fadeOut('medium');
  104. });
  105. }
  106. $.cookie('fbpopup_user_new', 'yes', { path: '/', expires: 7 });
  107. });
  108. </script>
  109.  
  110. <div id='fanback'>
  111. <div id='fan-exit'>
  112. </div>
  113. <div id='GeekPointFB'>
  114. <div id='FBwidgetGP'>
  115. </div>
  116. <div class='remove-borda'>
  117. </div>
  118. <iframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/Facebook&width=402&height=255&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false'
  119.  
  120. style='border: none; overflow: hidden; margin-top: -19px; width: 402px; height: 230px;'></iframe><center>
  121. <span id="linkit">Powered by <a href="http://www.geekpoint.net">Facebook Like Box Widget</a></span></center>
  122. </div>
  123. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement