Advertisement
K00dak

PopUp Facebook Like Button

Aug 30th, 2018
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.86 KB | None | 0 0
  1. <style>
  2. /*
  3. ColorBox Core Style:
  4. The following CSS is consistent between example themes and should not be altered.
  5. */
  6. #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
  7. #cboxOverlay{position:fixed; width:100%; height:100%;}
  8. #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
  9. #cboxContent{position:relative;}
  10. #cboxLoadedContent{overflow:auto;}
  11. #cboxTitle{margin:0;}
  12. #cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
  13. #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
  14. .cboxPhoto{float:left; margin:auto; border:0; display:block;}
  15. .cboxIframe{width:100%; height:100%; display:block; border:0;}
  16. /*
  17.  
  18. User Style:
  19. Change the following styles to modify the appearance of ColorBox. They are
  20. ordered & tabbed in a way that represents the nesting of the generated HTML.
  21. */
  22. #cboxOverlay{background:#000;opacity:0.5 !important;}
  23. #colorbox{
  24. box-shadow:0 0 15px rgba(0,0,0,0.4);
  25. -moz-box-shadow:0 0 15px rgba(0,0,0,0.4);
  26. -webkit-box-shadow:0 0 15px rgba(0,0,0,0.4);
  27. }
  28. #cboxTopLeft{width:14px; height:14px; background:url(http://1.bp.blogspot.com/-FiJ_Xz7txEg/Txrt0sy1TiI/AAAAAAAAFWk/Llzvkeyy_J8/s1600/controls.png) no-repeat 0 0;}
  29. #cboxTopCenter{height:14px; background:url(http://1.bp.blogspot.com/-TcJGMnSfOCY/TxrtzzHDLVI/AAAAAAAAFWc/mdndgrisRuA/s1600/border.png) repeat-x top left;}
  30. #cboxTopRight{width:14px; height:14px; background:url(http://1.bp.blogspot.com/-FiJ_Xz7txEg/Txrt0sy1TiI/AAAAAAAAFWk/Llzvkeyy_J8/s1600/controls.png) no-repeat -36px 0;}
  31. #cboxBottomLeft{width:14px; height:43px; background:url(http://1.bp.blogspot.com/-FiJ_Xz7txEg/Txrt0sy1TiI/AAAAAAAAFWk/Llzvkeyy_J8/s1600/controls.png) no-repeat 0 -32px;}
  32. #cboxBottomCenter{height:43px; background:url(http://1.bp.blogspot.com/-TcJGMnSfOCY/TxrtzzHDLVI/AAAAAAAAFWc/mdndgrisRuA/s1600/border.png) repeat-x bottom left;}
  33. #cboxBottomRight{width:14px; height:43px; background:url(http://1.bp.blogspot.com/-FiJ_Xz7txEg/Txrt0sy1TiI/AAAAAAAAFWk/Llzvkeyy_J8/s1600/controls.png) no-repeat -36px -32px;}
  34. #cboxMiddleLeft{width:14px; background:url(http://1.bp.blogspot.com/-FiJ_Xz7txEg/Txrt0sy1TiI/AAAAAAAAFWk/Llzvkeyy_J8/s1600/controls.png) repeat-y -175px 0;}
  35. #cboxMiddleRight{width:14px; background:url(http://1.bp.blogspot.com/-FiJ_Xz7txEg/Txrt0sy1TiI/AAAAAAAAFWk/Llzvkeyy_J8/s1600/controls.png) repeat-y -211px 0;}
  36. #cboxContent{background:#fff; overflow:visible;}
  37. #cboxLoadedContent{margin-bottom:5px;}
  38. #cboxLoadingOverlay{background:url(http://1.bp.blogspot.com/-PPvu-446sn4/Txrt1QsGH1I/AAAAAAAAFWw/_jWYVoR1HX8/s1600/loading-background.png) no-repeat center center;}
  39. #cboxLoadingGraphic{background:url(http://1.bp.blogspot.com/-31strss_1-E/Txrt1J6NThI/AAAAAAAAFWo/4P12CJPj924/s1600/loading.gif) no-repeat center center;}
  40. #cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
  41. #cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}
  42. #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(http://1.bp.blogspot.com/-FiJ_Xz7txEg/Txrt0sy1TiI/AAAAAAAAFWk/Llzvkeyy_J8/s1600/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
  43. #cboxPrevious{left:0px; background-position: -51px -25px;}
  44. #cboxPrevious.hover{background-position:-51px 0px;}
  45. #cboxNext{left:27px; background-position:-75px -25px;}
  46. #cboxNext.hover{background-position:-75px 0px;}
  47. #cboxClose{right:0; background-position:-100px -25px;}
  48. #cboxClose.hover{background-position:-100px 0px;}
  49. .cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
  50. .cboxSlideshow_on #cboxSlideshow.hover{background-position:-150px 0px;}
  51. .cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
  52. .cboxSlideshow_off #cboxSlideshow.hover{background-position:-125px 0px;}
  53. /*-----------------------------------------------------------------------------------*/
  54. /* Facebook Likebox popup For Blogger
  55. /*-----------------------------------------------------------------------------------*/
  56. #subscribe {
  57. font: 12px/1.2 Arial,Helvetica,san-serif; color:#666;
  58. }
  59. #subscribe a,
  60. #subscribe a:hover,
  61. #subscribe a:visited {
  62. text-decoration:none;
  63. }
  64. .box-title {
  65. color: #3B5998;
  66. font-size: 20px !important;
  67. font-weight: bold;
  68. margin: 10px 0;
  69. border:1px solid #ddd;
  70. -moz-border-radius:6px;
  71. -webkit-border-radius:6px;
  72. border-radius:6px;
  73. box-shadow: 5px 5px 5px #CCCCCC;
  74. padding:10px;
  75. line-height:25px; font-family:arial !important;
  76. }
  77. .box-tagline {
  78. color: #999;
  79. margin: 0;
  80. text-align: center;
  81. }
  82. #subs-container {
  83. padding: 35px 0 30px 0;
  84. position: relative;
  85. }
  86. a:link, a:visited {
  87. border:none;
  88. }
  89. .demo {
  90. display:none;
  91. }
  92. </style>
  93.  
  94. <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js'></script><script src="http://yourjavascript.com/11215013191/jquery.colorbox-min.js"></script>
  95. <script type="text/javascript">
  96. jQuery(document).ready(function(){
  97. if (document.cookie.indexOf('visited=true') == -1) {
  98. var fifteenDays = 1000*60*60*24*30;
  99. var expires = new Date((new Date()).valueOf() + fifteenDays);
  100. document.cookie = "visited=true;expires=" + expires.toUTCString();
  101. $.colorbox({width:"400px", inline:true, href:"#subscribe"});
  102. }
  103. });
  104. </script>
  105. <!-- This contains the hidden content for inline calls -->
  106. <div style='display:none'>
  107. <div id='subscribe' style='padding:10px; background:#fff;'>
  108. <h3 class="box-title">لا تنسى الاعجاب بصفحتنا على الفيسبوك<center><p style="line-height:3px;" >?</p></center></h3>
  109. <center>
  110. <iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2k00dak&width=300&colorscheme=light&show_faces=true&border_color=%23ffffff&stream=false&header=false&height=258" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:258px;" allowtransparency="true"></iframe>
  111. </center>
  112. </div>
  113. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement