Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="dynamicpopup" style="position: fixed;
- bottom: 0;height: 100px;
- background: #2EDFB2;">hhhhhhhhhhhhhhhhhhhh</div>
- <script>
- jQuery(document).ready(function(){
- jQuery('.dynamicpopup').hide();
- });
- jQuery(window).scroll(function($)
- {
- var y = jQuery(this).scrollTop();
- if (y > 900 && y < 1400 || y > 400 && y < 700) {
- jQuery('.dynamicpopup').fadeIn();
- } else {
- jQuery('.dynamicpopup').fadeOut();
- }
- });
- </script>
Add Comment
Please, Sign In to add comment