Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. <style type=”text/css”>
  2. #bn-bar {
  3. -moz-transition: all 0.5s ease;
  4. -webkit-transition: all 0.5s ease;
  5. -transition: all 0.5s ease;
  6. position: fixed;
  7. -webkit-transform: translateZ(0);
  8. width: 100%;
  9. height: 25px;
  10. line-height:25px;
  11. top: -35px;
  12. font-size:14px;
  13. z-index: 10000;
  14. background-color:#FF9900;
  15. font-family: “Helvetica Neue”, “Arial”, sans-serif;
  16. -webkit-box-sizing: border-box;
  17. -moz-box-sizing: border-box;
  18. box-sizing: border-box;
  19. -webkit-box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.2);
  20. -moz-box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.2);
  21. box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.2);
  22. text-align:center;
  23. }
  24. #hider {
  25. height:100%;
  26. width:30px;
  27. z-index:10001;
  28. float:right;
  29. background-color:#efefef;
  30. background-image:url(‘close_small.png’);
  31. background-position: 7px 5px;
  32. background-repeat:no-repeat;
  33. }
  34.  
  35. #hider:hover {
  36. background-color:#fff;
  37. cursor:pointer;
  38. }
  39. </style>
  40. <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js”></script>
  41. <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css”>
  42. <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script>
  43. <script src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js”></script>
  44. <script>
  45. var autohide;
  46. $(‘body’).prepend(‘<div id=”bn-bar”><b>DON\’T MISS OUT!</b> Send customized offer letters automatically by using our Google Sheets Add-On like hundreds of other businesses.<a href=”https://www.mangoblogger.com/onboarding-app/”>Try it for free today!</a><div id=”hider”> </div></div>’);
  47. $(document).ready(function(){
  48. $(“#hider”).click(function(){
  49. $(“#bn-bar”).animate({
  50. top: “-50”
  51. }, “fast”,”linear”, function(){});
  52. })
  53. $(“#bn-bar”).mouseover(function(){clearTimeout(autohide);});
  54. setTimeout(function(){$(“#bn-bar”).animate({top: “0”}, “slow”,”linear”, function(){});},2500);
  55. autohide = setTimeout(function(){$(“#bn-bar”).animate({top: “-30”}, “fast”,”linear”, function(){});},10000);
  56. })
  57. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement