Make <div> appear after scrolling down on the page with cookie support

I am reposting this project as I realized I needed some other aspects included in it.

I have a website. I want a div to appear after a user scrolls down the page a certain number of pixels, and again disappear if he scrolls back up again. I already have most of the code ready, but the problem is the closing of the popup. I have an X that people can click on which hides the div, but as soon as you start scrolling up or down the div reappears.

Also I need to implement cookie support for it, so that if someone closes it once, it should not reappear on other pages for 1 day.

So the main work is to make the close button work properly so that the popup stays hidden and doesn't keep reappearing, along with cookie support.

I am attaching the code I have made so far which you will modify.

If the user clicks the close button then it should set a cookie and not reappear for 1 day.

If a user doesnt click the close button but just scrolls up, it should fade out, but not set the cookie, so if they scroll down again it will re-appear.

Habilidades: HTML, Javascript, Design de Sites

Veja mais: scroll down website design, div 1 a, scrolling, div, scroll div page, attaching html, div scroll page, html fade div scroll, fade div page scroll, page scrolling, scroll fade div, html cookie popup, div fade scroll page, scroll div fade, fade div scroll, popup design html, div fade scroll, popup html code, design div popup, div popup design, design html popup, cookie code, popup button design, html button popup, popup div design

Acerca do Empregador:
( 10 comentários ) Chennai, India

ID do Projeto: #5140712

Concedido a:


javascript expert here and i would like to work on your [login to view URL] allow me to work on your project and get your work done in a day thanks Hi i can complete your task within 3 hour thanks

$15 USD em 1 dia
(7 Comentários)

2 freelancers estão ofertando em média $23 para esse trabalho


skilled javascript developer here, have done over 500+ javascriptproject for my clients, i can do the fix for you, let start now.

$30 USD em 1 dia
(73 Comentários)