sushma_proach

popup for fadein fadeout in footer

Jun 29th, 2016
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <div class="dynamicpopup" style="position: fixed;
  2.    bottom: 0;height: 100px;
  3.    background: #2EDFB2;">hhhhhhhhhhhhhhhhhhhh</div>
  4. <script>
  5. jQuery(document).ready(function(){
  6.     jQuery('.dynamicpopup').hide();
  7. });
  8. jQuery(window).scroll(function($)
  9. {
  10.     var y = jQuery(this).scrollTop();
  11.     if (y > 900 && y < 1400 || y > 400 && y < 700) {
  12.        
  13.         jQuery('.dynamicpopup').fadeIn();
  14.     } else {
  15.        jQuery('.dynamicpopup').fadeOut();
  16.     }
  17.  
  18. });
  19. </script>
Add Comment
Please, Sign In to add comment